OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 8 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
9 | 9 |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 int GetAnimationDuration(Animate animate) const; | 141 int GetAnimationDuration(Animate animate) const; |
142 | 142 |
143 // Temporarily reveals the top-of-window views while in immersive mode, | 143 // Temporarily reveals the top-of-window views while in immersive mode, |
144 // hiding them when the cursor exits the area of the top views. If |animate| | 144 // hiding them when the cursor exits the area of the top views. If |animate| |
145 // is not ANIMATE_NO, slides in the view, otherwise shows it immediately. | 145 // is not ANIMATE_NO, slides in the view, otherwise shows it immediately. |
146 void MaybeStartReveal(Animate animate); | 146 void MaybeStartReveal(Animate animate); |
147 | 147 |
148 // Enables or disables layer-based painting to allow smooth animations. | 148 // Enables or disables layer-based painting to allow smooth animations. |
149 void EnablePaintToLayer(bool enable); | 149 void EnablePaintToLayer(bool enable); |
150 | 150 |
151 // Updates layout for |browser_view_| including window caption controls and | 151 // Updates the browser root view's layout including window caption controls. |
152 // tab strip style |immersive_style|. | 152 void LayoutBrowserRootView(); |
153 void LayoutBrowserView(bool immersive_style); | |
154 | 153 |
155 // Called when the animation to slide open the top-of-window views has | 154 // Called when the animation to slide open the top-of-window views has |
156 // completed. | 155 // completed. |
157 void OnSlideOpenAnimationCompleted(); | 156 void OnSlideOpenAnimationCompleted(); |
158 | 157 |
159 // Hides the top-of-window views if immersive mode is enabled and nothing is | 158 // Hides the top-of-window views if immersive mode is enabled and nothing is |
160 // keeping them revealed. Optionally animates. | 159 // keeping them revealed. Optionally animates. |
161 void MaybeEndReveal(Animate animate); | 160 void MaybeEndReveal(Animate animate); |
162 | 161 |
163 // Called when the animation to slide out the top-of-window views has | 162 // Called when the animation to slide out the top-of-window views has |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 scoped_ptr<AnchoredWidgetManager> anchored_widget_manager_; | 215 scoped_ptr<AnchoredWidgetManager> anchored_widget_manager_; |
217 | 216 |
218 content::NotificationRegistrar registrar_; | 217 content::NotificationRegistrar registrar_; |
219 | 218 |
220 base::WeakPtrFactory<ImmersiveModeControllerAsh> weak_ptr_factory_; | 219 base::WeakPtrFactory<ImmersiveModeControllerAsh> weak_ptr_factory_; |
221 | 220 |
222 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); | 221 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); |
223 }; | 222 }; |
224 | 223 |
225 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ | 224 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ |
OLD | NEW |