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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 bool HandleToggleSpokenFeedback() { | 572 bool HandleToggleSpokenFeedback() { |
573 base::RecordAction(UserMetricsAction("Accel_Toggle_Spoken_Feedback")); | 573 base::RecordAction(UserMetricsAction("Accel_Toggle_Spoken_Feedback")); |
574 | 574 |
575 Shell::GetInstance()->accessibility_delegate()-> | 575 Shell::GetInstance()->accessibility_delegate()-> |
576 ToggleSpokenFeedback(A11Y_NOTIFICATION_SHOW); | 576 ToggleSpokenFeedback(A11Y_NOTIFICATION_SHOW); |
577 return true; | 577 return true; |
578 } | 578 } |
579 | 579 |
580 bool HandleToggleTouchViewTesting() { | 580 bool HandleToggleTouchViewTesting() { |
581 // TODO(skuhne): This is only temporary! Remove this! | 581 // TODO(skuhne): This is only temporary! Remove this! |
582 if (CommandLine::ForCurrentProcess()->HasSwitch( | 582 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
583 switches::kAshEnableTouchViewTesting)) { | 583 switches::kAshEnableTouchViewTesting)) { |
584 MaximizeModeController* controller = Shell::GetInstance()-> | 584 MaximizeModeController* controller = Shell::GetInstance()-> |
585 maximize_mode_controller(); | 585 maximize_mode_controller(); |
586 controller->EnableMaximizeModeWindowManager( | 586 controller->EnableMaximizeModeWindowManager( |
587 !controller->IsMaximizeModeWindowManagerEnabled()); | 587 !controller->IsMaximizeModeWindowManagerEnabled()); |
588 return true; | 588 return true; |
589 } | 589 } |
590 return false; | 590 return false; |
591 } | 591 } |
592 | 592 |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 keyboard_brightness_control_delegate) { | 1109 keyboard_brightness_control_delegate) { |
1110 keyboard_brightness_control_delegate_ = | 1110 keyboard_brightness_control_delegate_ = |
1111 keyboard_brightness_control_delegate.Pass(); | 1111 keyboard_brightness_control_delegate.Pass(); |
1112 } | 1112 } |
1113 | 1113 |
1114 bool AcceleratorController::CanHandleAccelerators() const { | 1114 bool AcceleratorController::CanHandleAccelerators() const { |
1115 return true; | 1115 return true; |
1116 } | 1116 } |
1117 | 1117 |
1118 } // namespace ash | 1118 } // namespace ash |
OLD | NEW |