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

Side by Side Diff: ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h

Issue 2829003002: Add CommandDispatcher to BrowserViewController. (Closed)
Patch Set: rohit comments Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/ntp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_
6 #define IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_ 6 #define IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @interface UIResponder (ChromeExecuteCommand) 10 @interface UIResponder (ChromeExecuteCommand)
11 // Executes a Chrome command. |sender| must implement the |-tag| method and 11 // Executes a Chrome command. |sender| must implement the |-tag| method and
12 // return the id of the command to execute. The default implementation of this 12 // return the id of the command to execute. The default implementation of this
13 // method simply forwards the call to the next responder. 13 // method simply forwards the call to the next responder.
14 - (IBAction)chromeExecuteCommand:(id)sender; 14 - (IBAction)chromeExecuteCommand:(id)sender;
15 @end 15 @end
16 16
17 @interface UIWindow (ChromeExecuteCommand) 17 @interface UIWindow (ChromeExecuteCommand)
18 // UIResponder addition to execute a Chrome command. Overridden in UIWindow to 18 // UIResponder addition to execute a Chrome command. Overridden in UIWindow to
19 // forward the call to the application's delegate. 19 // forward the call to the application's delegate.
20 - (void)chromeExecuteCommand:(id)sender; 20 - (void)chromeExecuteCommand:(id)sender;
21 @end 21 @end
22 22
23 @protocol ChromeExecuteCommand
24 // Executes a Chrome command. |sender| must implement the |-tag| method and
25 // return the id of the command to execute. The default implementation of this
26 // method simply forwards the call to the next responder.
27 - (IBAction)chromeExecuteCommand:(id)sender;
28 @end
29
23 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_ 30 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_UIKIT_CHROMEEXECUTECOMMAND_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/ntp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698