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_PANELS_PANEL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Reduces time interval in tests to shorten test run time. | 110 // Reduces time interval in tests to shorten test run time. |
111 // Wrapper should be used around all time intervals in panels code. | 111 // Wrapper should be used around all time intervals in panels code. |
112 static inline double AdjustTimeInterval(double interval) { | 112 static inline double AdjustTimeInterval(double interval) { |
113 if (shorten_time_intervals_) | 113 if (shorten_time_intervals_) |
114 return interval / 100.0; | 114 return interval / 100.0; |
115 else | 115 else |
116 return interval; | 116 return interval; |
117 } | 117 } |
118 | 118 |
| 119 |
| 120 bool auto_sizing_enabled() const { |
| 121 return auto_sizing_enabled_; |
| 122 } |
| 123 |
119 #ifdef UNIT_TEST | 124 #ifdef UNIT_TEST |
120 static void shorten_time_intervals_for_testing() { | 125 static void shorten_time_intervals_for_testing() { |
121 shorten_time_intervals_ = true; | 126 shorten_time_intervals_ = true; |
122 } | 127 } |
123 | 128 |
124 void set_auto_hiding_desktop_bar( | 129 void set_auto_hiding_desktop_bar( |
125 AutoHidingDesktopBar* auto_hiding_desktop_bar) { | 130 AutoHidingDesktopBar* auto_hiding_desktop_bar) { |
126 auto_hiding_desktop_bar_ = auto_hiding_desktop_bar; | 131 auto_hiding_desktop_bar_ = auto_hiding_desktop_bar; |
127 } | 132 } |
128 | 133 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // Timer used to track if the current active app is in full screen mode. | 210 // Timer used to track if the current active app is in full screen mode. |
206 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; | 211 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; |
207 | 212 |
208 // True if current active app is in full screen mode. | 213 // True if current active app is in full screen mode. |
209 bool is_full_screen_; | 214 bool is_full_screen_; |
210 | 215 |
211 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 216 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
212 }; | 217 }; |
213 | 218 |
214 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 219 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |