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

Side by Side Diff: ash/desktop_background/desktop_background_widget_controller.h

Issue 10915046: Revert 154611 - "Forget about DesktopBackgroundView if it was deleted" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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_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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/window_property.h" 9 #include "ui/aura/window_property.h"
10 #include "ui/compositor/layer.h" 10 #include "ui/compositor/layer.h"
(...skipping 10 matching lines...) Expand all
21 // (kComponentWrapper). When the animation completes the old 21 // (kComponentWrapper). When the animation completes the old
22 // DesktopBackgroundWidgetController is destroyed. 22 // DesktopBackgroundWidgetController is destroyed.
23 class DesktopBackgroundWidgetController { 23 class DesktopBackgroundWidgetController {
24 public: 24 public:
25 // Create 25 // Create
26 explicit DesktopBackgroundWidgetController(views::Widget* widget); 26 explicit DesktopBackgroundWidgetController(views::Widget* widget);
27 explicit DesktopBackgroundWidgetController(ui::Layer* layer); 27 explicit DesktopBackgroundWidgetController(ui::Layer* layer);
28 28
29 ~DesktopBackgroundWidgetController(); 29 ~DesktopBackgroundWidgetController();
30 30
31 // Drop widget reference. widget is not owned.
32 void CleanupWidget();
33
34 // Set bounds of component that draws background. 31 // Set bounds of component that draws background.
35 void SetBounds(gfx::Rect bounds); 32 void SetBounds(gfx::Rect bounds);
36 33
37 // Move component from |src_container| in |root_window| to |dest_container|. 34 // Move component from |src_container| in |root_window| to |dest_container|.
38 // It is required for lock screen, when we need to move background so that 35 // It is required for lock screen, when we need to move background so that
39 // it hides user's windows. 36 // it hides user's windows.
40 void Reparent(aura::RootWindow* root_window, 37 void Reparent(aura::RootWindow* root_window,
41 int src_container, 38 int src_container,
42 int dest_container); 39 int dest_container);
43 40
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // to root windows. 73 // to root windows.
77 extern const aura::WindowProperty<DesktopBackgroundWidgetController*>* const 74 extern const aura::WindowProperty<DesktopBackgroundWidgetController*>* const
78 kWindowDesktopComponent; 75 kWindowDesktopComponent;
79 76
80 extern const aura::WindowProperty<ComponentWrapper*>* const kComponentWrapper; 77 extern const aura::WindowProperty<ComponentWrapper*>* const kComponentWrapper;
81 78
82 } // namespace internal 79 } // namespace internal
83 } // namespace ash 80 } // namespace ash
84 81
85 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ 82 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_view.cc ('k') | ash/desktop_background/desktop_background_widget_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698