OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ | 5 #ifndef ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ |
6 #define ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ | 6 #define ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
| 11 typedef unsigned int SkColor; |
| 12 |
11 namespace aura { | 13 namespace aura { |
12 class RootWindow; | 14 class RootWindow; |
13 }; | 15 }; |
14 | 16 |
15 namespace ash { | 17 namespace ash { |
16 namespace internal { | 18 namespace internal { |
17 | 19 |
18 // SystemBackgroundController shows the system level background. See | 20 // SystemBackgroundController shows the system level background. See |
19 // kShellWindowId_SystemBackgroundContainer for a description of the system | 21 // kShellWindowId_SystemBackgroundContainer for a description of the system |
20 // level background. | 22 // level background. |
21 class ASH_EXPORT SystemBackgroundController { | 23 class ASH_EXPORT SystemBackgroundController { |
22 public: | 24 public: |
23 explicit SystemBackgroundController(aura::RootWindow* root); | 25 SystemBackgroundController(aura::RootWindow* root, SkColor color); |
24 ~SystemBackgroundController(); | 26 ~SystemBackgroundController(); |
25 | 27 |
| 28 // Changes the background color. |
| 29 void SetColor(SkColor color); |
| 30 |
26 private: | 31 private: |
27 class View; | 32 class View; |
28 | 33 |
29 // View responsible for rendering the background. This is non-NULL if the | 34 // View responsible for rendering the background. This is non-NULL if the |
30 // widget containing it is deleted. It is owned by the widget. | 35 // widget containing it is deleted. It is owned by the widget. |
31 View* view_; | 36 View* view_; |
32 | 37 |
33 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController); | 38 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController); |
34 }; | 39 }; |
35 | 40 |
36 } // namespace internal | 41 } // namespace internal |
37 } // namespace ash | 42 } // namespace ash |
38 | 43 |
39 #endif // ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ | 44 #endif // ASH_WM_WORKSPACE_SYSTEM_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |