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_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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class SystemBackgroundController : public aura::WindowObserver { | 28 class SystemBackgroundController : public aura::WindowObserver { |
29 public: | 29 public: |
30 SystemBackgroundController(aura::Window* root_window, SkColor color); | 30 SystemBackgroundController(aura::Window* root_window, SkColor color); |
31 virtual ~SystemBackgroundController(); | 31 virtual ~SystemBackgroundController(); |
32 | 32 |
33 void SetColor(SkColor color); | 33 void SetColor(SkColor color); |
34 | 34 |
35 // aura::WindowObserver overrides: | 35 // aura::WindowObserver overrides: |
36 virtual void OnWindowBoundsChanged(aura::Window* root, | 36 virtual void OnWindowBoundsChanged(aura::Window* root, |
37 const gfx::Rect& old_bounds, | 37 const gfx::Rect& old_bounds, |
38 const gfx::Rect& new_bounds) OVERRIDE; | 38 const gfx::Rect& new_bounds) override; |
39 | 39 |
40 private: | 40 private: |
41 class HostContentLayerDelegate; | 41 class HostContentLayerDelegate; |
42 | 42 |
43 aura::Window* root_window_; // not owned | 43 aura::Window* root_window_; // not owned |
44 | 44 |
45 scoped_ptr<ui::Layer> layer_; | 45 scoped_ptr<ui::Layer> layer_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController); | 47 DISALLOW_COPY_AND_ASSIGN(SystemBackgroundController); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace ash | 50 } // namespace ash |
51 | 51 |
52 #endif // ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_ | 52 #endif // ASH_WM_SYSTEM_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |