| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 case FOCUS_NEXT_PANE: | 622 case FOCUS_NEXT_PANE: |
| 623 return HandleRotatePaneFocus(Shell::FORWARD); | 623 return HandleRotatePaneFocus(Shell::FORWARD); |
| 624 case FOCUS_PREVIOUS_PANE: | 624 case FOCUS_PREVIOUS_PANE: |
| 625 return HandleRotatePaneFocus(Shell::BACKWARD); | 625 return HandleRotatePaneFocus(Shell::BACKWARD); |
| 626 case SHOW_KEYBOARD_OVERLAY: | 626 case SHOW_KEYBOARD_OVERLAY: |
| 627 ash::Shell::GetInstance()->delegate()->ShowKeyboardOverlay(); | 627 ash::Shell::GetInstance()->delegate()->ShowKeyboardOverlay(); |
| 628 return true; | 628 return true; |
| 629 case SHOW_OAK: | 629 case SHOW_OAK: |
| 630 if (CommandLine::ForCurrentProcess()->HasSwitch( | 630 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 631 switches::kAshEnableOak)) { | 631 switches::kAshEnableOak)) { |
| 632 oak::ShowOakWindow(); | 632 oak::ShowOakWindowWithContext(Shell::GetPrimaryRootWindow()); |
| 633 return true; | 633 return true; |
| 634 } | 634 } |
| 635 break; | 635 break; |
| 636 case SHOW_SYSTEM_TRAY_BUBBLE: { | 636 case SHOW_SYSTEM_TRAY_BUBBLE: { |
| 637 internal::RootWindowController* controller = | 637 internal::RootWindowController* controller = |
| 638 Shell::IsLauncherPerDisplayEnabled() ? | 638 Shell::IsLauncherPerDisplayEnabled() ? |
| 639 internal::RootWindowController::ForActiveRootWindow() : | 639 internal::RootWindowController::ForActiveRootWindow() : |
| 640 Shell::GetPrimaryRootWindowController(); | 640 Shell::GetPrimaryRootWindowController(); |
| 641 if (!controller->GetSystemTray()->HasSystemBubble()) | 641 if (!controller->GetSystemTray()->HasSystemBubble()) |
| 642 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW); | 642 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 keyboard_brightness_control_delegate) { | 851 keyboard_brightness_control_delegate) { |
| 852 keyboard_brightness_control_delegate_ = | 852 keyboard_brightness_control_delegate_ = |
| 853 keyboard_brightness_control_delegate.Pass(); | 853 keyboard_brightness_control_delegate.Pass(); |
| 854 } | 854 } |
| 855 | 855 |
| 856 bool AcceleratorController::CanHandleAccelerators() const { | 856 bool AcceleratorController::CanHandleAccelerators() const { |
| 857 return true; | 857 return true; |
| 858 } | 858 } |
| 859 | 859 |
| 860 } // namespace ash | 860 } // namespace ash |
| OLD | NEW |