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

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

Issue 10898007: Forget about DesktopBackgroundWidget if it was deleted (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
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 ownership of widget.
Nikita (slow) 2012/08/28 17:42:38 nit: Drop widget reference. widget is not owned.
32 void CleanUpWidget();
Nikita (slow) 2012/08/28 17:42:38 nit: CleanupWidget()
33
31 // Set bounds of component that draws background. 34 // Set bounds of component that draws background.
32 void SetBounds(gfx::Rect bounds); 35 void SetBounds(gfx::Rect bounds);
33 36
34 // Move component from |src_container| in |root_window| to |dest_container|. 37 // Move component from |src_container| in |root_window| to |dest_container|.
35 // It is required for lock screen, when we need to move background so that 38 // It is required for lock screen, when we need to move background so that
36 // it hides user's windows. 39 // it hides user's windows.
37 void Reparent(aura::RootWindow* root_window, 40 void Reparent(aura::RootWindow* root_window,
38 int src_container, 41 int src_container,
39 int dest_container); 42 int dest_container);
40 43
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // to root windows. 76 // to root windows.
74 extern const aura::WindowProperty<DesktopBackgroundWidgetController*>* const 77 extern const aura::WindowProperty<DesktopBackgroundWidgetController*>* const
75 kWindowDesktopComponent; 78 kWindowDesktopComponent;
76 79
77 extern const aura::WindowProperty<ComponentWrapper*>* const kComponentWrapper; 80 extern const aura::WindowProperty<ComponentWrapper*>* const kComponentWrapper;
78 81
79 } // namespace internal 82 } // namespace internal
80 } // namespace ash 83 } // namespace ash
81 84
82 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_ 85 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698