diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 20:13:24 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 20:13:24 +0000 |
commit | 8f104af0562fd65b427ebbb08cd98ad0caa14f5c (patch) | |
tree | 8dae3f04ff3b060a0d332593c1fa1116242a7195 /ash | |
parent | e15a4ce50c9cc23b646639f850a9450c645be56d (diff) | |
download | chromium_src-8f104af0562fd65b427ebbb08cd98ad0caa14f5c.zip chromium_src-8f104af0562fd65b427ebbb08cd98ad0caa14f5c.tar.gz chromium_src-8f104af0562fd65b427ebbb08cd98ad0caa14f5c.tar.bz2 |
Denote layers the mouse is over in debug output
When you hit Alt-L to print out the layer tree, layers which contain the mouse position will have '*' next to them instead of '+'
Review URL: http://codereview.chromium.org/9023011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/accelerators/accelerator_controller.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc index a9c38fd..d82900d 100644 --- a/ash/accelerators/accelerator_controller.cc +++ b/ash/accelerators/accelerator_controller.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// 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. @@ -113,7 +113,9 @@ bool HandleToggleRootWindowFullScreen() { } bool HandlePrintLayerHierarchy() { - ui::PrintLayerHierarchy(aura::RootWindow::GetInstance()->layer()); + aura::RootWindow* root_window = aura::RootWindow::GetInstance(); + ui::PrintLayerHierarchy(root_window->layer(), + root_window->last_mouse_location()); return true; } #endif |