Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: ios/clean/chrome/browser/ui/settings/settings_coordinator.mm

Issue 2948463002: [iOS Clean] Removed old overlay implementation.
Patch Set: rebase & Mark's comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/clean/chrome/browser/ui/settings/BUILD.gn ('k') | ios/clean/chrome/browser/ui/tab/tab_coordinator.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/ui/settings/settings_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm b/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm
index 3fcc5f910bbdc2b841001ca487f5888346fcfa7d..ffb02557bd4604324633d05acfd57f0099ec615f 100644
--- a/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm
@@ -6,6 +6,7 @@
#import "ios/chrome/browser/ui/settings/settings_navigation_controller.h"
#import "ios/clean/chrome/browser/ui/commands/settings_commands.h"
+#import "ios/clean/chrome/browser/ui/overlay_service/browser_coordinator+overlay_support.h"
#import "ios/shared/chrome/browser/ui/browser_list/browser.h"
#import "ios/shared/chrome/browser/ui/commands/command_dispatcher.h"
#import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal.h"
@@ -14,7 +15,10 @@
#error "This file requires ARC support."
#endif
-@interface SettingsCoordinator ()<SettingsNavigationControllerDelegate>
+@interface SettingsCoordinator ()<SettingsNavigationControllerDelegate> {
+ // Backing object for property of same name (in OverlaySupport category).
+ OverlayQueue* _overlayQueue;
+}
@property(nonatomic, strong) SettingsNavigationController* viewController;
@end
@@ -31,6 +35,11 @@ - (void)start {
[super start];
}
+- (void)stop {
+ [super stop];
+ [self overlayWasStopped];
+}
+
#pragma mark - SettingsNavigationControllerDelegate
- (void)closeSettingsAndOpenUrl:(OpenUrlCommand*)command {
@@ -50,3 +59,19 @@ - (void)closeSettings {
}
@end
+
+@implementation SettingsCoordinator (OverlaySupport)
+
+- (BOOL)supportsOverlaying {
+ return YES;
+}
+
+- (void)setOverlayQueue:(OverlayQueue*)overlayQueue {
+ _overlayQueue = overlayQueue;
+}
+
+- (OverlayQueue*)overlayQueue {
+ return _overlayQueue;
+}
+
+@end
« no previous file with comments | « ios/clean/chrome/browser/ui/settings/BUILD.gn ('k') | ios/clean/chrome/browser/ui/tab/tab_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698