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

Unified Diff: ios/shared/chrome/browser/ui/commands/command_dispatcher.h

Issue 2785153002: Add protocol APIs to CommandDispatcher. (Closed)
Patch Set: Feedback Created 3 years, 8 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 | « no previous file | ios/shared/chrome/browser/ui/commands/command_dispatcher.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/shared/chrome/browser/ui/commands/command_dispatcher.h
diff --git a/ios/shared/chrome/browser/ui/commands/command_dispatcher.h b/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
index eaf784fb1221b1aff2e247be769e0ba09973fe7a..ddc80e00fa80249d936d22b449d72c5d2766e4e6 100644
--- a/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
+++ b/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
@@ -19,6 +19,16 @@
// Removes forwarding registration for the given |selector|.
- (void)stopDispatchingForSelector:(SEL)selector;
+// Registers the given |target| to receive forwarded messages for the methods of
+// the given |protocol|. Only required instance methods are registered. The
+// other definitions in the protocol are ignored.
+- (void)startDispatchingToTarget:(id)target forProtocol:(Protocol*)protocol;
+
+// Removes forwarding registration for the given |selector|. Only dispatching to
+// required instance methods is removed. The other definitions in the protocol
+// are ignored.
+- (void)stopDispatchingForProtocol:(Protocol*)protocol;
+
// Removes all forwarding registrations for the given |target|.
- (void)stopDispatchingToTarget:(id)target;
« no previous file with comments | « no previous file | ios/shared/chrome/browser/ui/commands/command_dispatcher.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698