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/status/status_area_host.h" | 8 #include "chrome/browser/chromeos/status/status_area_host.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Creates a window containing an instance of WizardContentsView as the root | 32 // Creates a window containing an instance of WizardContentsView as the root |
33 // view. The caller is responsible for showing (and closing) the returned | 33 // view. The caller is responsible for showing (and closing) the returned |
34 // widget. The BackgroundView is set in |view|. | 34 // widget. The BackgroundView is set in |view|. |
35 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds, | 35 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds, |
36 BackgroundView** view); | 36 BackgroundView** view); |
37 | 37 |
38 // Overridden from views::View: | 38 // Overridden from views::View: |
39 virtual void Paint(gfx::Canvas* canvas); | 39 virtual void Paint(gfx::Canvas* canvas); |
40 virtual void Layout(); | 40 virtual void Layout(); |
| 41 virtual void ChildPreferredSizeChanged(View* child); |
41 | 42 |
42 // Overridden from StatusAreaHost: | 43 // Overridden from StatusAreaHost: |
43 virtual Profile* GetProfile() const { return NULL; } | 44 virtual Profile* GetProfile() const { return NULL; } |
44 virtual gfx::NativeWindow GetNativeWindow() const; | 45 virtual gfx::NativeWindow GetNativeWindow() const; |
45 virtual bool ShouldOpenButtonOptions( | 46 virtual bool ShouldOpenButtonOptions( |
46 const views::View* button_view) const; | 47 const views::View* button_view) const; |
47 virtual void OpenButtonOptions(const views::View* button_view) const; | 48 virtual void OpenButtonOptions(const views::View* button_view) const; |
48 virtual bool IsButtonVisible(const views::View* button_view) const; | 49 virtual bool IsButtonVisible(const views::View* button_view) const; |
49 | 50 |
50 private: | 51 private: |
(...skipping 10 matching lines...) Expand all Loading... |
61 // manager. | 62 // manager. |
62 // TODO(sky): nuke this when the wm knows when chrome has painted. | 63 // TODO(sky): nuke this when the wm knows when chrome has painted. |
63 bool did_paint_; | 64 bool did_paint_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 66 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace chromeos | 69 } // namespace chromeos |
69 | 70 |
70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
OLD | NEW |