| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 363 |
| 364 // Called when the Add Search Engine dialog is closed. | 364 // Called when the Add Search Engine dialog is closed. |
| 365 - (void)sheetDidEnd:(NSWindow*)sheet | 365 - (void)sheetDidEnd:(NSWindow*)sheet |
| 366 returnCode:(NSInteger)code | 366 returnCode:(NSInteger)code |
| 367 context:(void*)context; | 367 context:(void*)context; |
| 368 | 368 |
| 369 // Executes the command registered by the extension that has the given id. | 369 // Executes the command registered by the extension that has the given id. |
| 370 - (void)executeExtensionCommand:(const std::string&)extension_id | 370 - (void)executeExtensionCommand:(const std::string&)extension_id |
| 371 command:(const extensions::Command&)command; | 371 command:(const extensions::Command&)command; |
| 372 | 372 |
| 373 // Updates the visibility of the toolbar, with an optional animation. |
| 374 - (void)updateToolbarVisibility:(BOOL)visible |
| 375 withAnimation:(BOOL)animate; |
| 376 |
| 373 @end // @interface BrowserWindowController | 377 @end // @interface BrowserWindowController |
| 374 | 378 |
| 375 | 379 |
| 376 // Methods having to do with the window type (normal/popup/app, and whether the | 380 // Methods having to do with the window type (normal/popup/app, and whether the |
| 377 // window has various features; fullscreen and presentation mode methods are | 381 // window has various features; fullscreen and presentation mode methods are |
| 378 // separate). | 382 // separate). |
| 379 @interface BrowserWindowController(WindowType) | 383 @interface BrowserWindowController(WindowType) |
| 380 | 384 |
| 381 // Determines whether this controller's window supports a given feature (i.e., | 385 // Determines whether this controller's window supports a given feature (i.e., |
| 382 // whether a given feature is or can be shown in the window). | 386 // whether a given feature is or can be shown in the window). |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; | 610 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; |
| 607 | 611 |
| 608 // Gets the rect, in window base coordinates, that the omnibox popup should be | 612 // Gets the rect, in window base coordinates, that the omnibox popup should be |
| 609 // positioned relative to. | 613 // positioned relative to. |
| 610 - (NSRect)omniboxPopupAnchorRect; | 614 - (NSRect)omniboxPopupAnchorRect; |
| 611 | 615 |
| 612 @end // @interface BrowserWindowController (TestingAPI) | 616 @end // @interface BrowserWindowController (TestingAPI) |
| 613 | 617 |
| 614 | 618 |
| 615 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 619 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |