| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "ui/compositor/layer_animation_sequence.h" | 62 #include "ui/compositor/layer_animation_sequence.h" |
| 63 #include "ui/compositor/layer_animator.h" | 63 #include "ui/compositor/layer_animator.h" |
| 64 #include "ui/events/event.h" | 64 #include "ui/events/event.h" |
| 65 #include "ui/events/keycodes/keyboard_codes.h" | 65 #include "ui/events/keycodes/keyboard_codes.h" |
| 66 #include "ui/gfx/screen.h" | 66 #include "ui/gfx/screen.h" |
| 67 #include "ui/views/controls/webview/webview.h" | 67 #include "ui/views/controls/webview/webview.h" |
| 68 | 68 |
| 69 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
| 70 #include "ash/system/chromeos/keyboard_brightness_controller.h" | 70 #include "ash/system/chromeos/keyboard_brightness_controller.h" |
| 71 #include "base/sys_info.h" | 71 #include "base/sys_info.h" |
| 72 #include "chromeos/ime/ime_keyboard.h" | 72 #include "ui/base/ime/chromeos/ime_keyboard.h" |
| 73 #include "chromeos/ime/input_method_manager.h" | 73 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 74 #endif // defined(OS_CHROMEOS) | 74 #endif // defined(OS_CHROMEOS) |
| 75 | 75 |
| 76 namespace ash { | 76 namespace ash { |
| 77 namespace { | 77 namespace { |
| 78 | 78 |
| 79 using base::UserMetricsAction; | 79 using base::UserMetricsAction; |
| 80 | 80 |
| 81 bool HandleAccessibleFocusCycle(bool reverse) { | 81 bool HandleAccessibleFocusCycle(bool reverse) { |
| 82 if (reverse) { | 82 if (reverse) { |
| 83 base::RecordAction(UserMetricsAction("Accel_Accessible_Focus_Previous")); | 83 base::RecordAction(UserMetricsAction("Accel_Accessible_Focus_Previous")); |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 keyboard_brightness_control_delegate) { | 1107 keyboard_brightness_control_delegate) { |
| 1108 keyboard_brightness_control_delegate_ = | 1108 keyboard_brightness_control_delegate_ = |
| 1109 keyboard_brightness_control_delegate.Pass(); | 1109 keyboard_brightness_control_delegate.Pass(); |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 bool AcceleratorController::CanHandleAccelerators() const { | 1112 bool AcceleratorController::CanHandleAccelerators() const { |
| 1113 return true; | 1113 return true; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 } // namespace ash | 1116 } // namespace ash |
| OLD | NEW |