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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 "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
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_
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