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

Unified Diff: trunk/src/ash/debug.cc

Issue 59153004: Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/ash/debug.cc
===================================================================
--- trunk/src/ash/debug.cc (revision 233812)
+++ trunk/src/ash/debug.cc (working copy)
@@ -13,12 +13,12 @@
namespace debug {
void ToggleShowDebugBorders() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_debug_borders));
@@ -28,12 +28,12 @@
}
void ToggleShowFpsCounter() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_fps_counter));
@@ -43,12 +43,12 @@
}
void ToggleShowPaintRects() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_paint_rects));
« no previous file with comments | « trunk/src/ash/autoclick/autoclick_unittest.cc ('k') | trunk/src/ash/desktop_background/desktop_background_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698