Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1154)

Side by Side Diff: ash/wm/workspace/system_background_controller.h

Issue 11054005: ash: Display system background while loading wallpaper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura compile, hopefully Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/workspace/system_background_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/workspace/system_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698