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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 const size_t kDebugAcceleratorDataLength = arraysize(kDebugAcceleratorData); | 171 const size_t kDebugAcceleratorDataLength = arraysize(kDebugAcceleratorData); |
172 | 172 |
173 const AcceleratorAction kReservedActions[] = { | 173 const AcceleratorAction kReservedActions[] = { |
174 // Window cycling accelerators. | 174 // Window cycling accelerators. |
175 CYCLE_BACKWARD_MRU, // Shift+Alt+Tab | 175 CYCLE_BACKWARD_MRU, // Shift+Alt+Tab |
176 CYCLE_FORWARD_MRU, // Alt+Tab | 176 CYCLE_FORWARD_MRU, // Alt+Tab |
177 | 177 |
178 #if defined(OS_CHROMEOS) | 178 #if defined(OS_CHROMEOS) |
179 POWER_PRESSED, | 179 POWER_PRESSED, |
180 POWER_RELEASED, | 180 POWER_RELEASED, |
| 181 TOGGLE_MAXIMIZED, |
181 #endif | 182 #endif |
182 }; | 183 }; |
183 | 184 |
184 const size_t kReservedActionsLength = arraysize(kReservedActions); | 185 const size_t kReservedActionsLength = arraysize(kReservedActions); |
185 | 186 |
186 const AcceleratorAction kActionsAllowedAtLoginOrLockScreen[] = { | 187 const AcceleratorAction kActionsAllowedAtLoginOrLockScreen[] = { |
187 BRIGHTNESS_DOWN, | 188 BRIGHTNESS_DOWN, |
188 BRIGHTNESS_UP, | 189 BRIGHTNESS_UP, |
189 #if defined(OS_CHROMEOS) | 190 #if defined(OS_CHROMEOS) |
190 CYCLE_DISPLAY_MODE, | 191 CYCLE_DISPLAY_MODE, |
(...skipping 27 matching lines...) Expand all Loading... |
218 arraysize(kActionsAllowedAtLoginOrLockScreen); | 219 arraysize(kActionsAllowedAtLoginOrLockScreen); |
219 | 220 |
220 const AcceleratorAction kActionsAllowedAtLockScreen[] = { | 221 const AcceleratorAction kActionsAllowedAtLockScreen[] = { |
221 EXIT, | 222 EXIT, |
222 }; | 223 }; |
223 | 224 |
224 const size_t kActionsAllowedAtLockScreenLength = | 225 const size_t kActionsAllowedAtLockScreenLength = |
225 arraysize(kActionsAllowedAtLockScreen); | 226 arraysize(kActionsAllowedAtLockScreen); |
226 | 227 |
227 } // namespace ash | 228 } // namespace ash |
OLD | NEW |