OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_KEY_COMMANDS_PROVIDER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_KEY_COMMANDS_PROVIDER_H_ |
6 #define IOS_CHROME_BROWSER_UI_KEY_COMMANDS_PROVIDER_H_ | 6 #define IOS_CHROME_BROWSER_UI_KEY_COMMANDS_PROVIDER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
| 10 #import "ios/chrome/browser/ui/commands/browser_commands.h" |
| 11 |
10 @protocol KeyCommandsPlumbing<NSObject> | 12 @protocol KeyCommandsPlumbing<NSObject> |
11 | 13 |
12 #pragma mark Query information | 14 #pragma mark Query information |
13 | 15 |
14 // Whether the current profile is off-the-record. | 16 // Whether the current profile is off-the-record. |
15 - (BOOL)isOffTheRecord; | 17 - (BOOL)isOffTheRecord; |
16 | 18 |
17 // Returns the current number of tabs. | 19 // Returns the current number of tabs. |
18 - (NSUInteger)tabsCount; | 20 - (NSUInteger)tabsCount; |
19 | 21 |
(...skipping 25 matching lines...) Expand all Loading... |
45 // Called to focus the omnibox. | 47 // Called to focus the omnibox. |
46 - (void)focusOmnibox; | 48 - (void)focusOmnibox; |
47 | 49 |
48 @end | 50 @end |
49 | 51 |
50 // Handles the keyboard commands registration and handling for the | 52 // Handles the keyboard commands registration and handling for the |
51 // BrowserViewController. | 53 // BrowserViewController. |
52 @interface KeyCommandsProvider : NSObject | 54 @interface KeyCommandsProvider : NSObject |
53 | 55 |
54 - (NSArray*)keyCommandsForConsumer:(id<KeyCommandsPlumbing>)consumer | 56 - (NSArray*)keyCommandsForConsumer:(id<KeyCommandsPlumbing>)consumer |
| 57 browserCommandDispatcher:(id<BrowserCommands>)dispatcher |
55 editingText:(BOOL)editingText; | 58 editingText:(BOOL)editingText; |
56 | 59 |
57 @end | 60 @end |
58 | 61 |
59 #endif // IOS_CHROME_BROWSER_UI_KEY_COMMANDS_PROVIDER_H_ | 62 #endif // IOS_CHROME_BROWSER_UI_KEY_COMMANDS_PROVIDER_H_ |
OLD | NEW |