| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |