summaryrefslogtreecommitdiffstats
path: root/ash/debug.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:52:59 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:52:59 +0000
commit3433d4d6dfdae531334f216b78dc718eec268e20 (patch)
tree0399b304b7ae15b6bfac540d63b0a3e714c8c5e6 /ash/debug.cc
parent612a89c61cc97e3dfdbe08beeff57dca1825806d (diff)
downloadchromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.zip
chromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.tar.gz
chromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.tar.bz2
Eliminate Shell::RootWindowList in favor of aura::Window::Windows.
This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows. R=oshima@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/64933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/debug.cc')
-rw-r--r--ash/debug.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/ash/debug.cc b/ash/debug.cc
index 060627c..f5c6220 100644
--- a/ash/debug.cc
+++ b/ash/debug.cc
@@ -13,12 +13,12 @@ namespace ash {
namespace debug {
void ToggleShowDebugBorders() {
- Shell::RootWindowList root_windows =
+ aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (Shell::RootWindowList::iterator it = root_windows.begin();
+ for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->compositor();
+ ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_debug_borders));
@@ -28,12 +28,12 @@ void ToggleShowDebugBorders() {
}
void ToggleShowFpsCounter() {
- Shell::RootWindowList root_windows =
+ aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (Shell::RootWindowList::iterator it = root_windows.begin();
+ for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->compositor();
+ ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_fps_counter));
@@ -43,12 +43,12 @@ void ToggleShowFpsCounter() {
}
void ToggleShowPaintRects() {
- Shell::RootWindowList root_windows =
+ aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (Shell::RootWindowList::iterator it = root_windows.begin();
+ for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->compositor();
+ ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_paint_rects));