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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // True between |enterImmersiveFullscreen| and |-windowDidEnterFullScreen:| | 142 // True between |enterImmersiveFullscreen| and |-windowDidEnterFullScreen:| |
143 // to indicate that the window is in the process of transitioning into | 143 // to indicate that the window is in the process of transitioning into |
144 // AppKit fullscreen mode. | 144 // AppKit fullscreen mode. |
145 BOOL enteringImmersiveFullscreen_; | 145 BOOL enteringImmersiveFullscreen_; |
146 | 146 |
147 // True between |-setPresentationMode:url:bubbleType:| and | 147 // True between |-setPresentationMode:url:bubbleType:| and |
148 // |-windowDidEnterFullScreen:| to indicate that the window is in the process | 148 // |-windowDidEnterFullScreen:| to indicate that the window is in the process |
149 // of transitioning into fullscreen presentation mode. | 149 // of transitioning into fullscreen presentation mode. |
150 BOOL enteringPresentationMode_; | 150 BOOL enteringPresentationMode_; |
151 | 151 |
| 152 // When the window is in the process of entering AppKit Fullscreen, this |
| 153 // property indicates whether the window is being fullscreened on the |
| 154 // primary screen. |
| 155 BOOL enteringAppKitFullscreenOnPrimaryScreen_; |
| 156 |
152 // The size of the original (non-fullscreen) window. This is saved just | 157 // The size of the original (non-fullscreen) window. This is saved just |
153 // before entering fullscreen mode and is only valid when |-isFullscreen| | 158 // before entering fullscreen mode and is only valid when |-isFullscreen| |
154 // returns YES. | 159 // returns YES. |
155 NSRect savedRegularWindowFrame_; | 160 NSRect savedRegularWindowFrame_; |
156 | 161 |
157 // The proportion of the floating bar which is shown (in presentation mode). | 162 // The proportion of the floating bar which is shown (in presentation mode). |
158 CGFloat floatingBarShownFraction_; | 163 CGFloat floatingBarShownFraction_; |
159 | 164 |
160 // Various UI elements/events may want to ensure that the floating bar is | 165 // Various UI elements/events may want to ensure that the floating bar is |
161 // visible (in presentation mode), e.g., because of where the mouse is or | 166 // visible (in presentation mode), e.g., because of where the mouse is or |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // positioned relative to. | 607 // positioned relative to. |
603 - (NSRect)omniboxPopupAnchorRect; | 608 - (NSRect)omniboxPopupAnchorRect; |
604 | 609 |
605 // Force a layout of info bars. | 610 // Force a layout of info bars. |
606 - (void)layoutInfoBars; | 611 - (void)layoutInfoBars; |
607 | 612 |
608 @end // @interface BrowserWindowController (TestingAPI) | 613 @end // @interface BrowserWindowController (TestingAPI) |
609 | 614 |
610 | 615 |
611 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 616 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |