OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |