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

Unified Diff: ash/desktop_background/desktop_background_widget_controller.h

Issue 10829173: Revert 149869 because it broke ash_unittests on win_aura and linux_chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/desktop_background/desktop_background_widget_controller.h
===================================================================
--- ash/desktop_background/desktop_background_widget_controller.h (revision 149877)
+++ ash/desktop_background/desktop_background_widget_controller.h (working copy)
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_
-#define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/window_property.h"
-#include "ui/compositor/layer.h"
-#include "ui/views/widget/widget.h"
-
-namespace ash {
-namespace internal {
-
-// This class hides difference between two possible background implementations:
-// effective Layer-based for solid color, and Widget-based for images.
-class DesktopBackgroundWidgetController {
- public:
- // Create
- explicit DesktopBackgroundWidgetController(views::Widget* widget);
- explicit DesktopBackgroundWidgetController(ui::Layer* layer);
-
- ~DesktopBackgroundWidgetController();
-
- // Set bounds of component that draws background.
- void SetBounds(gfx::Rect bounds);
-
- // Move component from |src_container| in |root_window| to |dest_container|.
- // It is required for lock screen, when we need to move background so that
- // it hides user's windows.
- void Reparent(aura::RootWindow* root_window,
- int src_container,
- int dest_container);
-
- views::Widget* widget() { return widget_; }
- ui::Layer* layer() { return layer_.get(); }
-
- private:
- views::Widget* widget_;
- scoped_ptr<ui::Layer> layer_;
-
- DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundWidgetController);
-};
-
-// Window property key, that binds instance of DesktopBackgroundWidgetController
-// to root windows.
-extern const aura::WindowProperty<DesktopBackgroundWidgetController*>* const
- kWindowDesktopComponent;
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_WIDGET_CONTROLLER_H_
« 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