| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual void ChildPreferredSizeChanged(View* child); | 60 virtual void ChildPreferredSizeChanged(View* child); |
| 61 virtual void OnLocaleChanged(); | 61 virtual void OnLocaleChanged(); |
| 62 | 62 |
| 63 // Overridden from StatusAreaHost: | 63 // Overridden from StatusAreaHost: |
| 64 virtual Profile* GetProfile() const { return NULL; } | 64 virtual Profile* GetProfile() const { return NULL; } |
| 65 virtual gfx::NativeWindow GetNativeWindow() const; | 65 virtual gfx::NativeWindow GetNativeWindow() const; |
| 66 virtual void ExecuteBrowserCommand(int id) const {} | 66 virtual void ExecuteBrowserCommand(int id) const {} |
| 67 virtual bool ShouldOpenButtonOptions( | 67 virtual bool ShouldOpenButtonOptions( |
| 68 const views::View* button_view) const; | 68 const views::View* button_view) const; |
| 69 virtual void OpenButtonOptions(const views::View* button_view) const; | 69 virtual void OpenButtonOptions(const views::View* button_view) const; |
| 70 virtual bool IsButtonVisible(const views::View* button_view) const; | |
| 71 virtual bool IsBrowserMode() const; | 70 virtual bool IsBrowserMode() const; |
| 72 virtual bool IsScreenLockerMode() const; | 71 virtual bool IsScreenLockerMode() const; |
| 73 | 72 |
| 74 private: | 73 private: |
| 75 // Creates and adds the status_area. | 74 // Creates and adds the status_area. |
| 76 void InitStatusArea(); | 75 void InitStatusArea(); |
| 77 // Creates and adds the labels for version and boot time. | 76 // Creates and adds the labels for version and boot time. |
| 78 void InitInfoLabels(); | 77 void InitInfoLabels(); |
| 79 // Creates and add OOBE progress bar. | 78 // Creates and add OOBE progress bar. |
| 80 void InitProgressBar(); | 79 void InitProgressBar(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 108 // manager. | 107 // manager. |
| 109 // TODO(sky): nuke this when the wm knows when chrome has painted. | 108 // TODO(sky): nuke this when the wm knows when chrome has painted. |
| 110 bool did_paint_; | 109 bool did_paint_; |
| 111 | 110 |
| 112 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 111 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace chromeos | 114 } // namespace chromeos |
| 116 | 115 |
| 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| OLD | NEW |