OLD | NEW |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Returns the currently-active web contents. | 112 // Returns the currently-active web contents. |
113 - (content::WebContents*)currentWebContents; | 113 - (content::WebContents*)currentWebContents; |
114 | 114 |
115 // Returns the BrowserActionButton in the main browser actions container (as | 115 // Returns the BrowserActionButton in the main browser actions container (as |
116 // opposed to the overflow) for the action of the given id. | 116 // opposed to the overflow) for the action of the given id. |
117 - (BrowserActionButton*)mainButtonForId:(const std::string&)id; | 117 - (BrowserActionButton*)mainButtonForId:(const std::string&)id; |
118 | 118 |
119 // Returns the associated ToolbarActionsBar. | 119 // Returns the associated ToolbarActionsBar. |
120 - (ToolbarActionsBar*)toolbarActionsBar; | 120 - (ToolbarActionsBar*)toolbarActionsBar; |
121 | 121 |
122 // Sets whether or not the overflow container is focused in the wrench menu. | 122 // Sets whether or not the overflow container is focused in the app menu. |
123 - (void)setFocusedInOverflow:(BOOL)focused; | 123 - (void)setFocusedInOverflow:(BOOL)focused; |
124 | 124 |
125 // Returns the size for the provided |maxWidth| of the overflow menu. | 125 // Returns the size for the provided |maxWidth| of the overflow menu. |
126 - (gfx::Size)sizeForOverflowWidth:(int)maxWidth; | 126 - (gfx::Size)sizeForOverflowWidth:(int)maxWidth; |
127 | 127 |
128 @end // @interface BrowserActionsController | 128 @end // @interface BrowserActionsController |
129 | 129 |
130 @interface BrowserActionsController(TestingAPI) | 130 @interface BrowserActionsController(TestingAPI) |
131 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index; | 131 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index; |
132 @end | 132 @end |
133 | 133 |
134 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 134 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
OLD | NEW |