| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 // Called when the Add Search Engine dialog is closed. | 359 // Called when the Add Search Engine dialog is closed. |
| 360 - (void)sheetDidEnd:(NSWindow*)sheet | 360 - (void)sheetDidEnd:(NSWindow*)sheet |
| 361 returnCode:(NSInteger)code | 361 returnCode:(NSInteger)code |
| 362 context:(void*)context; | 362 context:(void*)context; |
| 363 | 363 |
| 364 // Executes the command registered by the extension that has the given id. | 364 // Executes the command registered by the extension that has the given id. |
| 365 - (void)executeExtensionCommand:(const std::string&)extension_id | 365 - (void)executeExtensionCommand:(const std::string&)extension_id |
| 366 command:(const extensions::Command&)command; | 366 command:(const extensions::Command&)command; |
| 367 | 367 |
| 368 - (BOOL)isExtensionCommandRegisteredForAccelerator: |
| 369 (const ui::Accelerator&)accelerator; |
| 370 |
| 368 @end // @interface BrowserWindowController | 371 @end // @interface BrowserWindowController |
| 369 | 372 |
| 370 | 373 |
| 371 // Methods having to do with the window type (normal/popup/app, and whether the | 374 // Methods having to do with the window type (normal/popup/app, and whether the |
| 372 // window has various features; fullscreen and presentation mode methods are | 375 // window has various features; fullscreen and presentation mode methods are |
| 373 // separate). | 376 // separate). |
| 374 @interface BrowserWindowController(WindowType) | 377 @interface BrowserWindowController(WindowType) |
| 375 | 378 |
| 376 // Determines whether this controller's window supports a given feature (i.e., | 379 // Determines whether this controller's window supports a given feature (i.e., |
| 377 // whether a given feature is or can be shown in the window). | 380 // whether a given feature is or can be shown in the window). |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 // positioned relative to. | 578 // positioned relative to. |
| 576 - (NSRect)omniboxPopupAnchorRect; | 579 - (NSRect)omniboxPopupAnchorRect; |
| 577 | 580 |
| 578 // Force a layout of info bars. | 581 // Force a layout of info bars. |
| 579 - (void)layoutInfoBars; | 582 - (void)layoutInfoBars; |
| 580 | 583 |
| 581 @end // @interface BrowserWindowController (TestingAPI) | 584 @end // @interface BrowserWindowController (TestingAPI) |
| 582 | 585 |
| 583 | 586 |
| 584 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 587 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |