OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
10 // code. Each window has a single toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 349 |
350 // Called when the Add Search Engine dialog is closed. | 350 // Called when the Add Search Engine dialog is closed. |
351 - (void)sheetDidEnd:(NSWindow*)sheet | 351 - (void)sheetDidEnd:(NSWindow*)sheet |
352 returnCode:(NSInteger)code | 352 returnCode:(NSInteger)code |
353 context:(void*)context; | 353 context:(void*)context; |
354 | 354 |
355 // Executes the command registered by the extension that has the given id. | 355 // Executes the command registered by the extension that has the given id. |
356 - (void)executeExtensionCommand:(const std::string&)extension_id | 356 - (void)executeExtensionCommand:(const std::string&)extension_id |
357 command:(const extensions::Command&)command; | 357 command:(const extensions::Command&)command; |
358 | 358 |
359 // Activates the page action for the extension that has the given id. | |
360 - (void)activatePageAction:(const std::string&)extension_id; | |
361 | |
362 // Activates the browser action for the extension that has the given id. | |
363 - (void)activateBrowserAction:(const std::string&)extension_id; | |
364 | |
365 @end // @interface BrowserWindowController | 359 @end // @interface BrowserWindowController |
366 | 360 |
367 | 361 |
368 // Methods having to do with the window type (normal/popup/app, and whether the | 362 // Methods having to do with the window type (normal/popup/app, and whether the |
369 // window has various features; fullscreen and presentation mode methods are | 363 // window has various features; fullscreen and presentation mode methods are |
370 // separate). | 364 // separate). |
371 @interface BrowserWindowController(WindowType) | 365 @interface BrowserWindowController(WindowType) |
372 | 366 |
373 // Determines whether this controller's window supports a given feature (i.e., | 367 // Determines whether this controller's window supports a given feature (i.e., |
374 // whether a given feature is or can be shown in the window). | 368 // whether a given feature is or can be shown in the window). |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 // positioned relative to. | 516 // positioned relative to. |
523 - (NSRect)omniboxPopupAnchorRect; | 517 - (NSRect)omniboxPopupAnchorRect; |
524 | 518 |
525 // Force a layout of info bars. | 519 // Force a layout of info bars. |
526 - (void)layoutInfoBars; | 520 - (void)layoutInfoBars; |
527 | 521 |
528 @end // @interface BrowserWindowController (TestingAPI) | 522 @end // @interface BrowserWindowController (TestingAPI) |
529 | 523 |
530 | 524 |
531 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 525 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |