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_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ | 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ |
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ | 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 #include "ui/views/widget/widget_observer.h" | 13 #include "ui/views/widget/widget_observer.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace internal { | |
17 class RootWindowController; | 16 class RootWindowController; |
18 | 17 |
19 // This class implements a widget-based wallpaper. | 18 // This class implements a widget-based wallpaper. |
20 // DesktopBackgroundWidgetController is owned by RootWindowController. | 19 // DesktopBackgroundWidgetController is owned by RootWindowController. |
21 // When the animation completes the old DesktopBackgroundWidgetController is | 20 // When the animation completes the old DesktopBackgroundWidgetController is |
22 // destroyed. Exported for tests. | 21 // destroyed. Exported for tests. |
23 class ASH_EXPORT DesktopBackgroundWidgetController | 22 class ASH_EXPORT DesktopBackgroundWidgetController |
24 : public views::WidgetObserver { | 23 : public views::WidgetObserver { |
25 public: | 24 public: |
26 // Create | 25 // Create |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Gets the wrapped DesktopBackgroundWidgetController pointer. Caller should | 81 // Gets the wrapped DesktopBackgroundWidgetController pointer. Caller should |
83 // take ownership of the pointer if |pass_ownership| is true. | 82 // take ownership of the pointer if |pass_ownership| is true. |
84 DesktopBackgroundWidgetController* GetController(bool pass_ownership); | 83 DesktopBackgroundWidgetController* GetController(bool pass_ownership); |
85 | 84 |
86 private: | 85 private: |
87 scoped_ptr<DesktopBackgroundWidgetController> controller_; | 86 scoped_ptr<DesktopBackgroundWidgetController> controller_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(AnimatingDesktopController); | 88 DISALLOW_COPY_AND_ASSIGN(AnimatingDesktopController); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace internal | |
93 } // namespace ash | 91 } // namespace ash |
94 | 92 |
95 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ | 93 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ |
OLD | NEW |