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_table.h" | 5 #include "ash/accelerators/accelerator_table.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 CYCLE_BACKWARD_LINEAR }, | 79 CYCLE_BACKWARD_LINEAR }, |
80 { true, ui::VKEY_T, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, RESTORE_TAB }, | 80 { true, ui::VKEY_T, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, RESTORE_TAB }, |
81 { true, ui::VKEY_F5, ui::EF_CONTROL_DOWN, TAKE_SCREENSHOT }, | 81 { true, ui::VKEY_F5, ui::EF_CONTROL_DOWN, TAKE_SCREENSHOT }, |
82 { true, ui::VKEY_F5, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, | 82 { true, ui::VKEY_F5, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, |
83 TAKE_PARTIAL_SCREENSHOT }, | 83 TAKE_PARTIAL_SCREENSHOT }, |
84 { true, ui::VKEY_PRINT, ui::EF_NONE, TAKE_SCREENSHOT_BY_PRTSCN_KEY }, | 84 { true, ui::VKEY_PRINT, ui::EF_NONE, TAKE_SCREENSHOT_BY_PRTSCN_KEY }, |
85 // On Chrome OS, Search key is mapped to LWIN. | 85 // On Chrome OS, Search key is mapped to LWIN. |
86 { true, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST }, | 86 { true, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST }, |
87 { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_APP_LIST }, | 87 { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_APP_LIST }, |
88 { true, ui::VKEY_BROWSER_SEARCH, ui::EF_NONE, TOGGLE_APP_LIST }, | 88 { true, ui::VKEY_BROWSER_SEARCH, ui::EF_NONE, TOGGLE_APP_LIST }, |
89 { true, ui::VKEY_LWIN, ui::EF_SHIFT_DOWN, TOGGLE_CAPS_LOCK }, | 89 { true, ui::VKEY_LWIN, ui::EF_ALT_DOWN, TOGGLE_CAPS_LOCK }, |
90 { true, ui::VKEY_F6, ui::EF_NONE, BRIGHTNESS_DOWN }, | 90 { true, ui::VKEY_F6, ui::EF_NONE, BRIGHTNESS_DOWN }, |
91 { true, ui::VKEY_F6, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_DOWN }, | 91 { true, ui::VKEY_F6, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_DOWN }, |
92 { true, ui::VKEY_F7, ui::EF_NONE, BRIGHTNESS_UP }, | 92 { true, ui::VKEY_F7, ui::EF_NONE, BRIGHTNESS_UP }, |
93 { true, ui::VKEY_F7, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_UP }, | 93 { true, ui::VKEY_F7, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_UP }, |
94 { true, ui::VKEY_F8, ui::EF_NONE, VOLUME_MUTE }, | 94 { true, ui::VKEY_F8, ui::EF_NONE, VOLUME_MUTE }, |
95 { true, ui::VKEY_VOLUME_MUTE, ui::EF_NONE, VOLUME_MUTE }, | 95 { true, ui::VKEY_VOLUME_MUTE, ui::EF_NONE, VOLUME_MUTE }, |
96 { true, ui::VKEY_F9, ui::EF_NONE, VOLUME_DOWN }, | 96 { true, ui::VKEY_F9, ui::EF_NONE, VOLUME_DOWN }, |
97 { true, ui::VKEY_VOLUME_DOWN, ui::EF_NONE, VOLUME_DOWN }, | 97 { true, ui::VKEY_VOLUME_DOWN, ui::EF_NONE, VOLUME_DOWN }, |
98 { true, ui::VKEY_F10, ui::EF_NONE, VOLUME_UP }, | 98 { true, ui::VKEY_F10, ui::EF_NONE, VOLUME_UP }, |
99 { true, ui::VKEY_VOLUME_UP, ui::EF_NONE, VOLUME_UP }, | 99 { true, ui::VKEY_VOLUME_UP, ui::EF_NONE, VOLUME_UP }, |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 arraysize(kActionsAllowedAtLoginOrLockScreen); | 222 arraysize(kActionsAllowedAtLoginOrLockScreen); |
223 | 223 |
224 const AcceleratorAction kActionsAllowedAtLockScreen[] = { | 224 const AcceleratorAction kActionsAllowedAtLockScreen[] = { |
225 EXIT, | 225 EXIT, |
226 }; | 226 }; |
227 | 227 |
228 const size_t kActionsAllowedAtLockScreenLength = | 228 const size_t kActionsAllowedAtLockScreenLength = |
229 arraysize(kActionsAllowedAtLockScreen); | 229 arraysize(kActionsAllowedAtLockScreen); |
230 | 230 |
231 } // namespace ash | 231 } // namespace ash |
OLD | NEW |