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

Side by Side Diff: ios/chrome/browser/ui/key_commands_provider.h

Issue 2970553002: [ios] Remove IDC_CLOSE_TAB
Patch Set: Add comment for chrome_test_util.h" Created 3 years, 5 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/commands/ios_command_ids.h ('k') | ios/chrome/browser/ui/key_commands_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698