| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // destroyed. Exported for tests. | 21 // destroyed. Exported for tests. |
| 22 class ASH_EXPORT DesktopBackgroundWidgetController | 22 class ASH_EXPORT DesktopBackgroundWidgetController |
| 23 : public views::WidgetObserver { | 23 : public views::WidgetObserver { |
| 24 public: | 24 public: |
| 25 // Create | 25 // Create |
| 26 explicit DesktopBackgroundWidgetController(views::Widget* widget); | 26 explicit DesktopBackgroundWidgetController(views::Widget* widget); |
| 27 | 27 |
| 28 virtual ~DesktopBackgroundWidgetController(); | 28 virtual ~DesktopBackgroundWidgetController(); |
| 29 | 29 |
| 30 // Overridden from views::WidgetObserver. | 30 // Overridden from views::WidgetObserver. |
| 31 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 31 virtual void OnWidgetDestroying(views::Widget* widget) override; |
| 32 | 32 |
| 33 // Set bounds of component that draws background. | 33 // Set bounds of component that draws background. |
| 34 void SetBounds(gfx::Rect bounds); | 34 void SetBounds(gfx::Rect bounds); |
| 35 | 35 |
| 36 // Move component from |src_container| in |root_window| to |dest_container|. | 36 // Move component from |src_container| in |root_window| to |dest_container|. |
| 37 // It is required for lock screen, when we need to move background so that | 37 // It is required for lock screen, when we need to move background so that |
| 38 // it hides user's windows. Returns true if there was something to reparent. | 38 // it hides user's windows. Returns true if there was something to reparent. |
| 39 bool Reparent(aura::Window* root_window, | 39 bool Reparent(aura::Window* root_window, |
| 40 int src_container, | 40 int src_container, |
| 41 int dest_container); | 41 int dest_container); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 scoped_ptr<DesktopBackgroundWidgetController> controller_; | 86 scoped_ptr<DesktopBackgroundWidgetController> controller_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(AnimatingDesktopController); | 88 DISALLOW_COPY_AND_ASSIGN(AnimatingDesktopController); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace ash | 91 } // namespace ash |
| 92 | 92 |
| 93 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ | 93 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ |
| OLD | NEW |