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

Side by Side Diff: trunk/src/ash/accelerators/accelerator_controller.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/src/ash/accelerators/accelerator_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/accelerators/accelerator_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <iostream> 9 #include <iostream>
10 #include <string> 10 #include <string>
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 Shell::GetInstance()->media_delegate()->HandleMediaPlayPause(); 322 Shell::GetInstance()->media_delegate()->HandleMediaPlayPause();
323 return true; 323 return true;
324 } 324 }
325 325
326 bool HandleMediaPrevTrack() { 326 bool HandleMediaPrevTrack() {
327 Shell::GetInstance()->media_delegate()->HandleMediaPrevTrack(); 327 Shell::GetInstance()->media_delegate()->HandleMediaPrevTrack();
328 return true; 328 return true;
329 } 329 }
330 330
331 bool HandlePrintLayerHierarchy() { 331 bool HandlePrintLayerHierarchy() {
332 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); 332 Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
333 for (size_t i = 0; i < root_windows.size(); ++i) { 333 for (size_t i = 0; i < root_windows.size(); ++i) {
334 ui::PrintLayerHierarchy( 334 ui::PrintLayerHierarchy(root_windows[i]->layer(),
335 root_windows[i]->layer(), 335 root_windows[i]->GetLastMouseLocationInRoot());
336 root_windows[i]->GetDispatcher()->GetLastMouseLocationInRoot());
337 } 336 }
338 return true; 337 return true;
339 } 338 }
340 339
341 bool HandlePrintViewHierarchy() { 340 bool HandlePrintViewHierarchy() {
342 aura::Window* active_window = ash::wm::GetActiveWindow(); 341 aura::Window* active_window = ash::wm::GetActiveWindow();
343 if (!active_window) 342 if (!active_window)
344 return true; 343 return true;
345 views::Widget* browser_widget = 344 views::Widget* browser_widget =
346 views::Widget::GetWidgetForNativeWindow(active_window); 345 views::Widget::GetWidgetForNativeWindow(active_window);
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 keyboard_brightness_control_delegate) { 994 keyboard_brightness_control_delegate) {
996 keyboard_brightness_control_delegate_ = 995 keyboard_brightness_control_delegate_ =
997 keyboard_brightness_control_delegate.Pass(); 996 keyboard_brightness_control_delegate.Pass();
998 } 997 }
999 998
1000 bool AcceleratorController::CanHandleAccelerators() const { 999 bool AcceleratorController::CanHandleAccelerators() const {
1001 return true; 1000 return true;
1002 } 1001 }
1003 1002
1004 } // namespace ash 1003 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | trunk/src/ash/accelerators/accelerator_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698