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 | 7 |
8 #include "chrome/browser/chromeos/boot_times_loader.h" | 8 #include "chrome/browser/chromeos/boot_times_loader.h" |
9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
10 #include "chrome/browser/chromeos/version_loader.h" | 10 #include "chrome/browser/chromeos/version_loader.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void SetOobeProgressBarVisible(bool visible); | 50 void SetOobeProgressBarVisible(bool visible); |
51 | 51 |
52 // Sets current step on OOBE progress bar. | 52 // Sets current step on OOBE progress bar. |
53 void SetOobeProgress(LoginStep step); | 53 void SetOobeProgress(LoginStep step); |
54 | 54 |
55 protected: | 55 protected: |
56 // Overridden from views::View: | 56 // Overridden from views::View: |
57 virtual void Paint(gfx::Canvas* canvas); | 57 virtual void Paint(gfx::Canvas* canvas); |
58 virtual void Layout(); | 58 virtual void Layout(); |
59 virtual void ChildPreferredSizeChanged(View* child); | 59 virtual void ChildPreferredSizeChanged(View* child); |
60 virtual void LocaleChanged(); | 60 virtual void OnLocaleChanged(); |
61 | 61 |
62 // Overridden from StatusAreaHost: | 62 // Overridden from StatusAreaHost: |
63 virtual Profile* GetProfile() const { return NULL; } | 63 virtual Profile* GetProfile() const { return NULL; } |
64 virtual gfx::NativeWindow GetNativeWindow() const; | 64 virtual gfx::NativeWindow GetNativeWindow() const; |
65 virtual void ExecuteBrowserCommand(int id) const {} | 65 virtual void ExecuteBrowserCommand(int id) const {} |
66 virtual bool ShouldOpenButtonOptions( | 66 virtual bool ShouldOpenButtonOptions( |
67 const views::View* button_view) const; | 67 const views::View* button_view) const; |
68 virtual void OpenButtonOptions(const views::View* button_view) const; | 68 virtual void OpenButtonOptions(const views::View* button_view) const; |
69 virtual bool IsButtonVisible(const views::View* button_view) const; | 69 virtual bool IsButtonVisible(const views::View* button_view) const; |
70 virtual bool IsBrowserMode() const; | 70 virtual bool IsBrowserMode() const; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // manager. | 107 // manager. |
108 // 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. |
109 bool did_paint_; | 109 bool did_paint_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 111 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace chromeos | 114 } // namespace chromeos |
115 | 115 |
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
OLD | NEW |