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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/wm/status_area_layout_manager.cc ('k') | ash/wm/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_SYSTEM_BACKGROUND_CONTROLLER_H_ 5 #ifndef ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_
6 #define ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_ 6 #define ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/aura/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 15
16 namespace ui { 16 namespace ui {
17 class Layer; 17 class Layer;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 namespace internal {
22 21
23 // SystemBackgroundController manages a ui::Layer that's stacked at the bottom 22 // SystemBackgroundController manages a ui::Layer that's stacked at the bottom
24 // of an aura::RootWindow's children. It exists solely to obscure portions of 23 // of an aura::RootWindow's children. It exists solely to obscure portions of
25 // the root layer that aren't covered by any other layers (e.g. before the 24 // the root layer that aren't covered by any other layers (e.g. before the
26 // desktop background image is loaded at startup, or when we scale down all of 25 // desktop background image is loaded at startup, or when we scale down all of
27 // the other layers as part of a power-button or window-management animation). 26 // the other layers as part of a power-button or window-management animation).
28 // It should never be transformed or restacked. 27 // It should never be transformed or restacked.
29 class SystemBackgroundController : public aura::WindowObserver { 28 class SystemBackgroundController : public aura::WindowObserver {
30 public: 29 public:
31 SystemBackgroundController(aura::Window* root_window, SkColor color); 30 SystemBackgroundController(aura::Window* root_window, SkColor color);
32 virtual ~SystemBackgroundController(); 31 virtual ~SystemBackgroundController();
33 32
34 void SetColor(SkColor color); 33 void SetColor(SkColor color);
35 34
36 // aura::WindowObserver overrides: 35 // aura::WindowObserver overrides:
37 virtual void OnWindowBoundsChanged(aura::Window* root, 36 virtual void OnWindowBoundsChanged(aura::Window* root,
38 const gfx::Rect& old_bounds, 37 const gfx::Rect& old_bounds,
39 const gfx::Rect& new_bounds) OVERRIDE; 38 const gfx::Rect& new_bounds) OVERRIDE;
40 39
41 private: 40 private:
42 class HostContentLayerDelegate; 41 class HostContentLayerDelegate;
43 42
44 aura::Window* root_window_; // not owned 43 aura::Window* root_window_; // not owned
45 44
46 scoped_ptr<ui::Layer> layer_; 45 scoped_ptr<ui::Layer> layer_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController); 47 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController);
49 }; 48 };
50 49
51 } // namespace internal
52 } // namespace ash 50 } // namespace ash
53 51
54 #endif // ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_ 52 #endif // ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/status_area_layout_manager.cc ('k') | ash/wm/system_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698