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

Unified Diff: ash/wm/root_window_layout_manager.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
« no previous file with comments | « ash/shell_window_ids.h ('k') | ash/wm/root_window_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/root_window_layout_manager.h
===================================================================
--- ash/wm/root_window_layout_manager.h (revision 149877)
+++ ash/wm/root_window_layout_manager.h (working copy)
@@ -5,7 +5,6 @@
#ifndef ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
#define ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
-#include "ash/shell_window_ids.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -34,6 +33,18 @@
explicit RootWindowLayoutManager(aura::Window* owner);
virtual ~RootWindowLayoutManager();
+ views::Widget* background_widget() { return background_widget_; }
+ ui::Layer* background_layer() { return background_layer_.get(); }
+
+ // Sets the background to |widget|. Closes and destroys the old widget if it
+ // exists and differs from the new widget.
+ void SetBackgroundWidget(views::Widget* widget);
+
+ // Sets a background layer, taking ownership of |layer|. This is provided as
+ // a lightweight alternative to SetBackgroundWidget(); layers can be simple
+ // colored quads instead of being textured.
+ void SetBackgroundLayer(ui::Layer* layer);
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -47,6 +58,10 @@
private:
aura::Window* owner_;
+ // May be NULL if we're not painting a background.
+ views::Widget* background_widget_;
+ scoped_ptr<ui::Layer> background_layer_;
+
DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager);
};
« no previous file with comments | « ash/shell_window_ids.h ('k') | ash/wm/root_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698