OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_FULLSCREEN_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/cocoa_protocols_mac.h" | 10 #import "base/cocoa_protocols_mac.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Informs the controller that the browser has entered or exited fullscreen | 77 // Informs the controller that the browser has entered or exited fullscreen |
78 // mode. |-enterFullscreenForContentView:showDropdown:| should be called after | 78 // mode. |-enterFullscreenForContentView:showDropdown:| should be called after |
79 // the fullscreen window is setup, just before it is shown. |-exitFullscreen| | 79 // the fullscreen window is setup, just before it is shown. |-exitFullscreen| |
80 // should be called before any views are moved back to the non-fullscreen | 80 // should be called before any views are moved back to the non-fullscreen |
81 // window. | 81 // window. |
82 - (void)enterFullscreenForContentView:(NSView*)contentView | 82 - (void)enterFullscreenForContentView:(NSView*)contentView |
83 showDropdown:(BOOL)showDropdown; | 83 showDropdown:(BOOL)showDropdown; |
84 - (void)exitFullscreen; | 84 - (void)exitFullscreen; |
85 | 85 |
86 // Returns the amount by which the tab strip should be offset and the overlay | 86 // Returns the amount by which the floating bar should be offset downwards (to |
87 // view should be enlarged, vertically. Generally, this is > 0 when the | 87 // avoid the menu) and by which the overlay view should be enlarged vertically. |
88 // fullscreen window is on the primary screen and 0 otherwise. | 88 // Generally, this is > 0 when the fullscreen window is on the primary screen |
89 - (CGFloat)tabStripVerticalOffset; | 89 // and 0 otherwise. |
| 90 - (CGFloat)floatingBarVerticalOffset; |
90 | 91 |
91 // Informs the controller that the overlay's frame has changed. The controller | 92 // Informs the controller that the overlay's frame has changed. The controller |
92 // uses this information to update its tracking areas. | 93 // uses this information to update its tracking areas. |
93 - (void)overlayFrameChanged:(NSRect)frame; | 94 - (void)overlayFrameChanged:(NSRect)frame; |
94 | 95 |
95 // Informs the controller that the overlay should be shown/hidden, possibly with | 96 // Informs the controller that the overlay should be shown/hidden, possibly with |
96 // animation, possibly after a delay (only applicable for the animated case). | 97 // animation, possibly after a delay (only applicable for the animated case). |
97 - (void)ensureOverlayShownWithAnimation:(BOOL)animate delay:(BOOL)delay; | 98 - (void)ensureOverlayShownWithAnimation:(BOOL)animate delay:(BOOL)delay; |
98 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay; | 99 - (void)ensureOverlayHiddenWithAnimation:(BOOL)animate delay:(BOOL)delay; |
99 | 100 |
100 // Cancels any running animation and timers. | 101 // Cancels any running animation and timers. |
101 - (void)cancelAnimationAndTimers; | 102 - (void)cancelAnimationAndTimers; |
102 | 103 |
103 // Gets the current floating bar shown fraction. | 104 // Gets the current floating bar shown fraction. |
104 - (CGFloat)floatingBarShownFraction; | 105 - (CGFloat)floatingBarShownFraction; |
105 | 106 |
106 // Sets a new current floating bar shown fraction. NOTE: This function has side | 107 // Sets a new current floating bar shown fraction. NOTE: This function has side |
107 // effects, such as modifying the fullscreen mode (menubar shown state). | 108 // effects, such as modifying the fullscreen mode (menubar shown state). |
108 - (void)changeFloatingBarShownFraction:(CGFloat)fraction; | 109 - (void)changeFloatingBarShownFraction:(CGFloat)fraction; |
109 | 110 |
110 @end | 111 @end |
111 | 112 |
112 #endif // CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_ | 113 #endif // CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_ |
OLD | NEW |