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

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

Issue 2072853002: Implement "pinned" mode in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 6 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
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; 228 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength;
229 229
230 // Actions allowed while a modal window is up. 230 // Actions allowed while a modal window is up.
231 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtModalWindow[]; 231 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtModalWindow[];
232 ASH_EXPORT extern const size_t kActionsAllowedAtModalWindowLength; 232 ASH_EXPORT extern const size_t kActionsAllowedAtModalWindowLength;
233 233
234 // Actions which will not be repeated while holding an accelerator key. 234 // Actions which will not be repeated while holding an accelerator key.
235 ASH_EXPORT extern const AcceleratorAction kNonrepeatableActions[]; 235 ASH_EXPORT extern const AcceleratorAction kNonrepeatableActions[];
236 ASH_EXPORT extern const size_t kNonrepeatableActionsLength; 236 ASH_EXPORT extern const size_t kNonrepeatableActionsLength;
237 237
238 // Actions allowed in app mode. 238 // Actions allowed in app mode or pinned mode.
239 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInAppMode[]; 239 ASH_EXPORT extern const AcceleratorAction
240 ASH_EXPORT extern const size_t kActionsAllowedInAppModeLength; 240 kActionsAllowedInAppModeOrPinnedMode[];
241 ASH_EXPORT extern const size_t kActionsAllowedInAppModeOrPinnedModeLength;
242
243 // Actions that can be performed in pinned mode.
244 // In pinned mode, the action listed this or "in app mode or pinned mode" table
245 // can be performed.
246 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInPinnedMode[];
247 ASH_EXPORT extern const size_t kActionsAllowedInPinnedModeLength;
241 248
242 // Actions that require at least 1 window. 249 // Actions that require at least 1 window.
243 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[]; 250 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[];
244 ASH_EXPORT extern const size_t kActionsNeedingWindowLength; 251 ASH_EXPORT extern const size_t kActionsNeedingWindowLength;
245 252
246 // Actions that can be performed while keeping the menu open. 253 // Actions that can be performed while keeping the menu open.
247 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[]; 254 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[];
248 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength; 255 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength;
249 256
250 } // namespace ash 257 } // namespace ash
251 258
252 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 259 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698