| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void HideScreenSaver(); | 95 void HideScreenSaver(); |
| 96 | 96 |
| 97 // Tells if screen saver is visible. | 97 // Tells if screen saver is visible. |
| 98 bool IsScreenSaverVisible(); | 98 bool IsScreenSaverVisible(); |
| 99 | 99 |
| 100 // Tells if screen saver is enabled. | 100 // Tells if screen saver is enabled. |
| 101 bool ScreenSaverEnabled(); | 101 bool ScreenSaverEnabled(); |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 // Overridden from views::View: | 104 // Overridden from views::View: |
| 105 virtual void OnPaint(gfx::Canvas* canvas); | 105 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 106 virtual void Layout(); | 106 virtual void Layout() OVERRIDE; |
| 107 virtual void ChildPreferredSizeChanged(View* child); | 107 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
| 108 virtual void OnLocaleChanged(); | 108 virtual void OnLocaleChanged() OVERRIDE; |
| 109 | 109 |
| 110 // Overridden from StatusAreaHost: | 110 // Overridden from StatusAreaHost: |
| 111 virtual Profile* GetProfile() const { return NULL; } | 111 virtual Profile* GetProfile() const OVERRIDE { return NULL; } |
| 112 virtual void ExecuteBrowserCommand(int id) const {} | 112 virtual void ExecuteBrowserCommand(int id) const OVERRIDE {} |
| 113 virtual bool ShouldOpenButtonOptions( | 113 virtual bool ShouldOpenButtonOptions( |
| 114 const views::View* button_view) const; | 114 const views::View* button_view) const OVERRIDE; |
| 115 virtual void OpenButtonOptions(const views::View* button_view); | 115 virtual void OpenButtonOptions(const views::View* button_view) OVERRIDE; |
| 116 virtual ScreenMode GetScreenMode() const; | 116 virtual ScreenMode GetScreenMode() const OVERRIDE; |
| 117 virtual TextStyle GetTextStyle() const OVERRIDE; |
| 117 | 118 |
| 118 // Overridden from LoginHtmlDialog::Delegate: | 119 // Overridden from LoginHtmlDialog::Delegate: |
| 119 virtual void OnDialogClosed() {} | 120 virtual void OnDialogClosed() OVERRIDE {} |
| 120 | 121 |
| 121 private: | 122 private: |
| 122 // Creates and adds the status_area. | 123 // Creates and adds the status_area. |
| 123 void InitStatusArea(); | 124 void InitStatusArea(); |
| 124 // Creates and adds the labels for version and boot time. | 125 // Creates and adds the labels for version and boot time. |
| 125 void InitInfoLabels(); | 126 void InitInfoLabels(); |
| 126 // Creates and add OOBE progress bar. | 127 // Creates and add OOBE progress bar. |
| 127 void InitProgressBar(); | 128 void InitProgressBar(); |
| 128 | 129 |
| 129 // Invokes SetWindowType for the window. This is invoked during startup and | 130 // Invokes SetWindowType for the window. This is invoked during startup and |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // CloudPolicySubsysterm observer registrar | 191 // CloudPolicySubsysterm observer registrar |
| 191 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> | 192 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> |
| 192 cloud_policy_registrar_; | 193 cloud_policy_registrar_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 195 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace chromeos | 198 } // namespace chromeos |
| 198 | 199 |
| 199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 200 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| OLD | NEW |