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

Unified Diff: ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm

Issue 2935653002: [ios clean] Move dispatcher out of Browser.
Patch Set: Dispatcher out of Browser. 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
Index: ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
index 6198cab7d5b55770b97724151373fdd9f7165066..cae580d00b2f5d6e336071f24a8b526969ecf6f7 100644
--- a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
@@ -64,12 +64,11 @@
- (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator {
// Register to receive relevant ContextMenuCommands.
if ([childCoordinator isKindOfClass:[WebContextMenuCoordinator class]]) {
- [self.browser->dispatcher()
+ [self.dispatcher
startDispatchingToTarget:self
forSelector:@selector(executeContextMenuScript:)];
- [self.browser->dispatcher()
- startDispatchingToTarget:self
- forSelector:@selector(openContextMenuImage:)];
+ [self.dispatcher startDispatchingToTarget:self
+ forSelector:@selector(openContextMenuImage:)];
}
[self.viewController presentViewController:childCoordinator.viewController
animated:YES
@@ -79,9 +78,9 @@
- (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator {
// Unregister ContextMenuCommands once the UI has been dismissed.
if ([childCoordinator isKindOfClass:[WebContextMenuCoordinator class]]) {
- [self.browser->dispatcher()
+ [self.dispatcher
stopDispatchingForSelector:@selector(executeContextMenuScript:)];
- [self.browser->dispatcher()
+ [self.dispatcher
stopDispatchingForSelector:@selector(openContextMenuImage:)];
}
}

Powered by Google App Engine
This is Rietveld 408576698