| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
| 10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 354 |
| 355 // Methods having to do with fullscreen and presentation mode. | 355 // Methods having to do with fullscreen and presentation mode. |
| 356 @interface BrowserWindowController(Fullscreen) | 356 @interface BrowserWindowController(Fullscreen) |
| 357 | 357 |
| 358 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter | 358 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter |
| 359 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. | 359 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. |
| 360 - (void)handleLionToggleFullscreen; | 360 - (void)handleLionToggleFullscreen; |
| 361 | 361 |
| 362 // Enters (or exits) fullscreen mode. This method is safe to call on all OS | 362 // Enters (or exits) fullscreen mode. This method is safe to call on all OS |
| 363 // versions. | 363 // versions. |
| 364 - (void)setFullscreen:(BOOL)fullscreen; | 364 - (void)setFullscreen:(BOOL)fullscreen |
| 365 forURL:(const GURL&)url |
| 366 askPermission:(BOOL)ask_permission; |
| 365 | 367 |
| 366 // Returns fullscreen state. This method is safe to call on all OS versions. | 368 // Returns fullscreen state. This method is safe to call on all OS versions. |
| 367 - (BOOL)isFullscreen; | 369 - (BOOL)isFullscreen; |
| 368 | 370 |
| 369 // Toggles presentation mode without exiting fullscreen mode. Should only be | 371 // Toggles presentation mode without exiting fullscreen mode. Should only be |
| 370 // called by the presentation mode toggle button. This method should not be | 372 // called by the presentation mode toggle button. This method should not be |
| 371 // called on Snow Leopard or earlier. | 373 // called on Snow Leopard or earlier. |
| 372 - (void)togglePresentationModeForLionOrLater:(id)sender; | 374 - (void)togglePresentationModeForLionOrLater:(id)sender; |
| 373 | 375 |
| 374 // Enters (or exits) presentation mode. Also enters fullscreen mode if this | 376 // Enters (or exits) presentation mode. Also enters fullscreen mode if this |
| 375 // window is not already fullscreen. This method is safe to call on all OS | 377 // window is not already fullscreen. This method is safe to call on all OS |
| 376 // versions. | 378 // versions. |
| 377 - (void)setPresentationMode:(BOOL)presentationMode; | 379 - (void)setPresentationMode:(BOOL)presentationMode |
| 380 url:(const GURL&)url |
| 381 askPermission:(BOOL)ask_permission; |
| 378 | 382 |
| 379 // Returns presentation mode state. This method is safe to call on all OS | 383 // Returns presentation mode state. This method is safe to call on all OS |
| 380 // versions. | 384 // versions. |
| 381 - (BOOL)inPresentationMode; | 385 - (BOOL)inPresentationMode; |
| 382 | 386 |
| 383 // Resizes the fullscreen window to fit the screen it's currently on. Called by | 387 // Resizes the fullscreen window to fit the screen it's currently on. Called by |
| 384 // the PresentationModeController when there is a change in monitor placement or | 388 // the PresentationModeController when there is a change in monitor placement or |
| 385 // resolution. | 389 // resolution. |
| 386 - (void)resizeFullscreenWindow; | 390 - (void)resizeFullscreenWindow; |
| 387 | 391 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 - (void)resetWindowGrowthState; | 449 - (void)resetWindowGrowthState; |
| 446 | 450 |
| 447 // Computes by how far in each direction, horizontal and vertical, the | 451 // Computes by how far in each direction, horizontal and vertical, the |
| 448 // |source| rect doesn't fit into |target|. | 452 // |source| rect doesn't fit into |target|. |
| 449 - (NSSize)overflowFrom:(NSRect)source | 453 - (NSSize)overflowFrom:(NSRect)source |
| 450 to:(NSRect)target; | 454 to:(NSRect)target; |
| 451 @end // @interface BrowserWindowController (TestingAPI) | 455 @end // @interface BrowserWindowController (TestingAPI) |
| 452 | 456 |
| 453 | 457 |
| 454 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 458 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |