| 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 24 matching lines...) Expand all Loading... |
| 35 BackgroundView** view); | 35 BackgroundView** view); |
| 36 | 36 |
| 37 // Toggles status area visibility. | 37 // Toggles status area visibility. |
| 38 void SetStatusAreaVisible(bool visible); | 38 void SetStatusAreaVisible(bool visible); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // Overridden from views::View: | 41 // Overridden from views::View: |
| 42 virtual void Paint(gfx::Canvas* canvas); | 42 virtual void Paint(gfx::Canvas* canvas); |
| 43 virtual void Layout(); | 43 virtual void Layout(); |
| 44 virtual void ChildPreferredSizeChanged(View* child); | 44 virtual void ChildPreferredSizeChanged(View* child); |
| 45 virtual void LocaleChanged(); | 45 virtual void OnLocaleChanged(); |
| 46 | 46 |
| 47 // Overridden from StatusAreaHost: | 47 // Overridden from StatusAreaHost: |
| 48 virtual Profile* GetProfile() const { return NULL; } | 48 virtual Profile* GetProfile() const { return NULL; } |
| 49 virtual gfx::NativeWindow GetNativeWindow() const; | 49 virtual gfx::NativeWindow GetNativeWindow() const; |
| 50 virtual void ExecuteBrowserCommand(int id) const {} | 50 virtual void ExecuteBrowserCommand(int id) const {} |
| 51 virtual bool ShouldOpenButtonOptions( | 51 virtual bool ShouldOpenButtonOptions( |
| 52 const views::View* button_view) const; | 52 const views::View* button_view) const; |
| 53 virtual void OpenButtonOptions(const views::View* button_view) const; | 53 virtual void OpenButtonOptions(const views::View* button_view) const; |
| 54 virtual bool IsButtonVisible(const views::View* button_view) const; | 54 virtual bool IsButtonVisible(const views::View* button_view) const; |
| 55 virtual bool IsBrowserMode() const; | 55 virtual bool IsBrowserMode() const; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // manager. | 89 // manager. |
| 90 // TODO(sky): nuke this when the wm knows when chrome has painted. | 90 // TODO(sky): nuke this when the wm knows when chrome has painted. |
| 91 bool did_paint_; | 91 bool did_paint_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 93 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace chromeos | 96 } // namespace chromeos |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| OLD | NEW |