| 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_DISPLAY_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| 11 | 11 |
| 12 // Encapsulates the logic to provide display settings support, including the | 12 // Encapsulates the logic to provide display settings support, including the |
| 13 // information for: | 13 // information for: |
| 14 // 1) Work area | 14 // 1) Work area |
| 15 // 2) Auto-hiding desktop bars, like Windows taskbar and MacOSX dock. | 15 // 2) Auto-hiding desktop bars, like Windows taskbar and MacOSX dock. |
| 16 class DisplaySettingsProvider { | 16 class DisplaySettingsProvider { |
| 17 public: | 17 public: |
| 18 // Indicates which screen edge the desktop bar is aligned to. | 18 // Indicates which screen edge the desktop bar is aligned to. |
| 19 // We do not care about the desktop aligned to the top screen edge. | 19 // We do not care about the desktop aligned to the top screen edge. |
| 20 enum DesktopBarAlignment { | 20 enum DesktopBarAlignment { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // True if full screen mode or presentation mode is entered. | 148 // True if full screen mode or presentation mode is entered. |
| 149 bool is_full_screen_; | 149 bool is_full_screen_; |
| 150 | 150 |
| 151 // Timer used to detect full-screen mode change. | 151 // Timer used to detect full-screen mode change. |
| 152 base::RepeatingTimer<DisplaySettingsProvider> full_screen_mode_timer_; | 152 base::RepeatingTimer<DisplaySettingsProvider> full_screen_mode_timer_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(DisplaySettingsProvider); | 154 DISALLOW_COPY_AND_ASSIGN(DisplaySettingsProvider); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 #endif // CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ | 157 #endif // CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ |
| OLD | NEW |