OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/boot_times_loader.h" | 9 #include "chrome/browser/chromeos/boot_times_loader.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void HideScreenSaver(); | 96 void HideScreenSaver(); |
97 | 97 |
98 // Tells if screen saver is visible. | 98 // Tells if screen saver is visible. |
99 bool IsScreenSaverVisible(); | 99 bool IsScreenSaverVisible(); |
100 | 100 |
101 // Tells if screen saver is enabled. | 101 // Tells if screen saver is enabled. |
102 bool ScreenSaverEnabled(); | 102 bool ScreenSaverEnabled(); |
103 | 103 |
104 protected: | 104 protected: |
105 // Overridden from views::View: | 105 // Overridden from views::View: |
106 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
107 virtual void Layout() OVERRIDE; | 106 virtual void Layout() OVERRIDE; |
108 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 107 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
109 virtual void OnLocaleChanged() OVERRIDE; | 108 virtual void OnLocaleChanged() OVERRIDE; |
110 | 109 |
111 // Overridden from StatusAreaHost: | 110 // Overridden from StatusAreaHost: |
112 virtual Profile* GetProfile() const OVERRIDE; | 111 virtual Profile* GetProfile() const OVERRIDE; |
113 virtual void ExecuteBrowserCommand(int id) const OVERRIDE {} | 112 virtual void ExecuteBrowserCommand(int id) const OVERRIDE {} |
114 virtual bool ShouldOpenButtonOptions( | 113 virtual bool ShouldOpenButtonOptions( |
115 const views::View* button_view) const OVERRIDE; | 114 const views::View* button_view) const OVERRIDE; |
116 virtual void OpenButtonOptions(const views::View* button_view) OVERRIDE; | 115 virtual void OpenButtonOptions(const views::View* button_view) OVERRIDE; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Handles asynchronously loading the version. | 162 // Handles asynchronously loading the version. |
164 VersionLoader version_loader_; | 163 VersionLoader version_loader_; |
165 // Used to request the version. | 164 // Used to request the version. |
166 CancelableRequestConsumer version_consumer_; | 165 CancelableRequestConsumer version_consumer_; |
167 | 166 |
168 // Handles asynchronously loading the boot times. | 167 // Handles asynchronously loading the boot times. |
169 BootTimesLoader boot_times_loader_; | 168 BootTimesLoader boot_times_loader_; |
170 // Used to request the boot times. | 169 // Used to request the boot times. |
171 CancelableRequestConsumer boot_times_consumer_; | 170 CancelableRequestConsumer boot_times_consumer_; |
172 | 171 |
173 // Has Paint been invoked once? The value of this is passed to the window | |
174 // manager. | |
175 // TODO(sky): nuke this when the wm knows when chrome has painted. | |
176 bool did_paint_; | |
177 | |
178 // True if running official BUILD. | 172 // True if running official BUILD. |
179 bool is_official_build_; | 173 bool is_official_build_; |
180 | 174 |
181 // DOMView for rendering a webpage as a background. | 175 // DOMView for rendering a webpage as a background. |
182 DOMView* background_area_; | 176 DOMView* background_area_; |
183 | 177 |
184 // Information pieces for version label. | 178 // Information pieces for version label. |
185 std::string version_text_; | 179 std::string version_text_; |
186 std::string enterprise_domain_text_; | 180 std::string enterprise_domain_text_; |
187 std::string enterprise_status_text_; | 181 std::string enterprise_status_text_; |
188 | 182 |
189 // Proxy settings dialog that can be invoked from network menu. | 183 // Proxy settings dialog that can be invoked from network menu. |
190 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; | 184 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; |
191 | 185 |
192 // CloudPolicySubsysterm observer registrar | 186 // CloudPolicySubsysterm observer registrar |
193 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> | 187 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> |
194 cloud_policy_registrar_; | 188 cloud_policy_registrar_; |
195 | 189 |
196 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 190 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
197 }; | 191 }; |
198 | 192 |
199 } // namespace chromeos | 193 } // namespace chromeos |
200 | 194 |
201 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
OLD | NEW |