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 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
11 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 11 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
12 | 12 |
13 @class BrowserWindowController; | 13 @class BrowserWindowController; |
14 @class DropdownAnimation; | 14 @class DropdownAnimation; |
15 | 15 |
| 16 // TODO(erikchen): This controller is misnamed. It manages the sliding tab |
| 17 // strip and omnibox in all fullscreen modes. |
| 18 |
16 // Provides a controller to manage presentation mode for a single browser | 19 // Provides a controller to manage presentation mode for a single browser |
17 // window. This class handles running animations, showing and hiding the | 20 // window. This class handles running animations, showing and hiding the |
18 // floating dropdown bar, and managing the tracking area associated with the | 21 // floating dropdown bar, and managing the tracking area associated with the |
19 // dropdown. This class does not directly manage any views -- the | 22 // dropdown. This class does not directly manage any views -- the |
20 // BrowserWindowController is responsible for positioning and z-ordering views. | 23 // BrowserWindowController is responsible for positioning and z-ordering views. |
21 // | 24 // |
22 // Tracking areas are disabled while animations are running. If | 25 // Tracking areas are disabled while animations are running. If |
23 // |overlayFrameChanged:| is called while an animation is running, the | 26 // |overlayFrameChanged:| is called while an animation is running, the |
24 // controller saves the new frame and installs the appropriate tracking area | 27 // controller saves the new frame and installs the appropriate tracking area |
25 // when the animation finishes. This is largely done for ease of | 28 // when the animation finishes. This is largely done for ease of |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // effects, such as modifying the system fullscreen mode (menu bar shown state). | 117 // effects, such as modifying the system fullscreen mode (menu bar shown state). |
115 - (void)changeFloatingBarShownFraction:(CGFloat)fraction; | 118 - (void)changeFloatingBarShownFraction:(CGFloat)fraction; |
116 | 119 |
117 @end | 120 @end |
118 | 121 |
119 // Notification posted when we're about to enter or leave fullscreen. | 122 // Notification posted when we're about to enter or leave fullscreen. |
120 extern NSString* const kWillEnterFullscreenNotification; | 123 extern NSString* const kWillEnterFullscreenNotification; |
121 extern NSString* const kWillLeaveFullscreenNotification; | 124 extern NSString* const kWillLeaveFullscreenNotification; |
122 | 125 |
123 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ | 126 #endif // CHROME_BROWSER_UI_COCOA_PRESENTATION_MODE_CONTROLLER_H_ |
OLD | NEW |