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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 383 |
384 // Methods having to do with fullscreen and presentation mode. | 384 // Methods having to do with fullscreen and presentation mode. |
385 @interface BrowserWindowController(Fullscreen) | 385 @interface BrowserWindowController(Fullscreen) |
386 | 386 |
387 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter | 387 // Toggles fullscreen mode. Meant to be called by Lion windows when they enter |
388 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. | 388 // or exit Lion fullscreen mode. Must not be called on Snow Leopard or earlier. |
389 - (void)handleLionToggleFullscreen; | 389 - (void)handleLionToggleFullscreen; |
390 | 390 |
391 // Enters (or exits) fullscreen mode. This method is safe to call on all OS | 391 // Enters (or exits) fullscreen mode. This method is safe to call on all OS |
392 // versions. | 392 // versions. |
393 - (void)enterFullscreenForURL:(const GURL&)url | 393 - (void)enterFullscreen; |
394 bubbleType:(FullscreenExitBubbleType)bubbleType; | |
395 - (void)exitFullscreen; | 394 - (void)exitFullscreen; |
396 | 395 |
397 // Updates the contents of the fullscreen exit bubble with |url| and | 396 // Updates the contents of the fullscreen exit bubble with |url| and |
398 // |bubbleType|. | 397 // |bubbleType|. |
399 - (void)updateFullscreenExitBubbleURL:(const GURL&)url | 398 - (void)updateFullscreenExitBubbleURL:(const GURL&)url |
400 bubbleType:(FullscreenExitBubbleType)bubbleType; | 399 bubbleType:(FullscreenExitBubbleType)bubbleType; |
401 | 400 |
402 // Returns fullscreen state. This method is safe to call on all OS versions. | 401 // Returns fullscreen state. This method is safe to call on all OS versions. |
403 - (BOOL)isFullscreen; | 402 - (BOOL)isFullscreen; |
404 | 403 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 // |source| rect doesn't fit into |target|. | 481 // |source| rect doesn't fit into |target|. |
483 - (NSSize)overflowFrom:(NSRect)source | 482 - (NSSize)overflowFrom:(NSRect)source |
484 to:(NSRect)target; | 483 to:(NSRect)target; |
485 | 484 |
486 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 485 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
487 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 486 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
488 @end // @interface BrowserWindowController (TestingAPI) | 487 @end // @interface BrowserWindowController (TestingAPI) |
489 | 488 |
490 | 489 |
491 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 490 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |