Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Side by Side Diff: ash/accelerators/accelerator_table.h

Issue 2130603002: ash: Explicitly enumerate repeatable accelerators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 // Actions allowed while screen is locked (in addition to 227 // Actions allowed while screen is locked (in addition to
228 // kActionsAllowedAtLoginOrLockScreen). 228 // kActionsAllowedAtLoginOrLockScreen).
229 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[]; 229 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[];
230 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; 230 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength;
231 231
232 // Actions allowed while a modal window is up. 232 // Actions allowed while a modal window is up.
233 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtModalWindow[]; 233 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtModalWindow[];
234 ASH_EXPORT extern const size_t kActionsAllowedAtModalWindowLength; 234 ASH_EXPORT extern const size_t kActionsAllowedAtModalWindowLength;
235 235
236 // Actions which will not be repeated while holding an accelerator key. 236 // Actions which may be repeated by holding an accelerator key.
237 ASH_EXPORT extern const AcceleratorAction kNonrepeatableActions[]; 237 ASH_EXPORT extern const AcceleratorAction kRepeatableActions[];
238 ASH_EXPORT extern const size_t kNonrepeatableActionsLength; 238 ASH_EXPORT extern const size_t kRepeatableActionsLength;
239 239
240 // Actions allowed in app mode or pinned mode. 240 // Actions allowed in app mode or pinned mode.
241 ASH_EXPORT extern const AcceleratorAction 241 ASH_EXPORT extern const AcceleratorAction
242 kActionsAllowedInAppModeOrPinnedMode[]; 242 kActionsAllowedInAppModeOrPinnedMode[];
243 ASH_EXPORT extern const size_t kActionsAllowedInAppModeOrPinnedModeLength; 243 ASH_EXPORT extern const size_t kActionsAllowedInAppModeOrPinnedModeLength;
244 244
245 // Actions that can be performed in pinned mode. 245 // Actions that can be performed in pinned mode.
246 // In pinned mode, the action listed this or "in app mode or pinned mode" table 246 // In pinned mode, the action listed this or "in app mode or pinned mode" table
247 // can be performed. 247 // can be performed.
248 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInPinnedMode[]; 248 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInPinnedMode[];
249 ASH_EXPORT extern const size_t kActionsAllowedInPinnedModeLength; 249 ASH_EXPORT extern const size_t kActionsAllowedInPinnedModeLength;
250 250
251 // Actions that require at least 1 window. 251 // Actions that require at least 1 window.
252 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[]; 252 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[];
253 ASH_EXPORT extern const size_t kActionsNeedingWindowLength; 253 ASH_EXPORT extern const size_t kActionsNeedingWindowLength;
254 254
255 // Actions that can be performed while keeping the menu open. 255 // Actions that can be performed while keeping the menu open.
256 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[]; 256 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[];
257 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength; 257 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength;
258 258
259 } // namespace ash 259 } // namespace ash
260 260
261 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 261 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698