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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.h

Issue 161293002: mac: Allows extensions to hide the bookmark page menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure changes only apply to OSX. Created 6 years, 10 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Returns where the popup arrow should point to for a given Browser Action. If 97 // Returns where the popup arrow should point to for a given Browser Action. If
98 // it is passed an extension that is not a Browser Action, then it will return 98 // it is passed an extension that is not a Browser Action, then it will return
99 // NSZeroPoint. 99 // NSZeroPoint.
100 - (NSPoint)popupPointForBrowserAction:(const extensions::Extension*)extension; 100 - (NSPoint)popupPointForBrowserAction:(const extensions::Extension*)extension;
101 101
102 // Returns whether the chevron button is currently hidden or in the process of 102 // Returns whether the chevron button is currently hidden or in the process of
103 // being hidden (fading out). Will return NO if it is not hidden or is in the 103 // being hidden (fading out). Will return NO if it is not hidden or is in the
104 // process of fading in. 104 // process of fading in.
105 - (BOOL)chevronIsHidden; 105 - (BOOL)chevronIsHidden;
106 106
107 // Activates the browser action for the extension that has the given id.
108 - (void)activateBrowserAction:(const std::string&)extension_id;
109
107 @end // @interface BrowserActionsController 110 @end // @interface BrowserActionsController
108 111
109 @interface BrowserActionsController(TestingAPI) 112 @interface BrowserActionsController(TestingAPI)
110 - (NSButton*)buttonWithIndex:(NSUInteger)index; 113 - (NSButton*)buttonWithIndex:(NSUInteger)index;
111 @end 114 @end
112 115
113 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ 116 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698