Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: chrome/browser/ui/panels/display_settings_provider.h

Issue 12430013: Fix panel showing logic when Chrome enters the fullscreen mode (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix per feedback Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.h" 9 #include "base/timer.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 bool is_full_screen() const { return is_full_screen_; } 122 bool is_full_screen() const { return is_full_screen_; }
123 123
124 protected: 124 protected:
125 DisplaySettingsProvider(); 125 DisplaySettingsProvider();
126 126
127 // Returns true if we need to perform fullscreen check periodically. 127 // Returns true if we need to perform fullscreen check periodically.
128 virtual bool NeedsPeriodicFullScreenCheck() const; 128 virtual bool NeedsPeriodicFullScreenCheck() const;
129 129
130 // Returns true if full screen or presentation mode in main screen is entered. 130 // Returns true if full screen or presentation mode in main screen is entered.
131 virtual bool IsFullScreen() const; 131 virtual bool IsFullScreen();
132 132
133 // Callback to perform periodic check for full screen mode changes. 133 // Callback to perform periodic check for full screen mode changes.
134 void CheckFullScreenMode(); 134 void CheckFullScreenMode();
135 135
136 private: 136 private:
137 // Observers that listen to various display settings changes. 137 // Observers that listen to various display settings changes.
138 ObserverList<DisplayObserver> display_observers_; 138 ObserverList<DisplayObserver> display_observers_;
139 ObserverList<DesktopBarObserver> desktop_bar_observers_; 139 ObserverList<DesktopBarObserver> desktop_bar_observers_;
140 ObserverList<FullScreenObserver> full_screen_observers_; 140 ObserverList<FullScreenObserver> full_screen_observers_;
141 141
142 // True if full screen mode or presentation mode is entered. 142 // True if full screen mode or presentation mode is entered.
143 bool is_full_screen_; 143 bool is_full_screen_;
144 144
145 // Timer used to detect full-screen mode change. 145 // Timer used to detect full-screen mode change.
146 base::RepeatingTimer<DisplaySettingsProvider> full_screen_mode_timer_; 146 base::RepeatingTimer<DisplaySettingsProvider> full_screen_mode_timer_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(DisplaySettingsProvider); 148 DISALLOW_COPY_AND_ASSIGN(DisplaySettingsProvider);
149 }; 149 };
150 150
151 #endif // CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_ 151 #endif // CHROME_BROWSER_UI_PANELS_DISPLAY_SETTINGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm ('k') | chrome/browser/ui/panels/display_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698