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_PRESENTATION_MODE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
7 | 7 |
8 #include <Carbon/Carbon.h> | 8 #include <Carbon/Carbon.h> |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
13 | 13 |
14 @class BrowserWindowController; | 14 @class BrowserWindowController; |
15 @class DropdownAnimation; | 15 @class DropdownAnimation; |
16 | 16 |
17 namespace fullscreen_mac { | 17 namespace fullscreen_mac { |
18 enum SlidingStyle { | 18 enum SlidingStyle { |
19 OMNIBOX_TABS_PRESENT = 0, // Tab strip and omnibox both visible. | 19 OMNIBOX_TABS_PRESENT = 0, // Tab strip and omnibox both visible. |
20 OMNIBOX_PRESENT, // Tab strip hidden. | |
21 OMNIBOX_TABS_HIDDEN, // Tab strip and omnibox both hidden. | 20 OMNIBOX_TABS_HIDDEN, // Tab strip and omnibox both hidden. |
22 }; | 21 }; |
23 } // namespace fullscreen_mac | 22 } // namespace fullscreen_mac |
24 | 23 |
25 // TODO(erikchen): This controller is misnamed. It manages the sliding tab | 24 // TODO(erikchen): This controller is misnamed. It manages the sliding tab |
26 // strip and omnibox in all fullscreen modes. | 25 // strip and omnibox in all fullscreen modes. |
27 | 26 |
28 // Provides a controller to manage presentation mode for a single browser | 27 // Provides a controller to manage presentation mode for a single browser |
29 // window. This class handles running animations, showing and hiding the | 28 // window. This class handles running animations, showing and hiding the |
30 // floating dropdown bar, and managing the tracking area associated with the | 29 // floating dropdown bar, and managing the tracking area associated with the |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Ranges from 0 to -22. | 140 // Ranges from 0 to -22. |
142 - (CGFloat)menubarOffset; | 141 - (CGFloat)menubarOffset; |
143 | 142 |
144 @end | 143 @end |
145 | 144 |
146 // Notification posted when we're about to enter or leave fullscreen. | 145 // Notification posted when we're about to enter or leave fullscreen. |
147 extern NSString* const kWillEnterFullscreenNotification; | 146 extern NSString* const kWillEnterFullscreenNotification; |
148 extern NSString* const kWillLeaveFullscreenNotification; | 147 extern NSString* const kWillLeaveFullscreenNotification; |
149 | 148 |
150 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ | 149 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
OLD | NEW |