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

Unified Diff: ash/accelerators/accelerator_table.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_table.cc
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc
index 6dea00ed429a3cd937df4b4af8614af13b548f9f..640d33dc2591d553366d4726736924dfd6ac0e98 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -464,7 +464,7 @@ const AcceleratorAction kNonrepeatableActions[] = {
const size_t kNonrepeatableActionsLength =
arraysize(kNonrepeatableActions);
-const AcceleratorAction kActionsAllowedInAppMode[] = {
+const AcceleratorAction kActionsAllowedInAppModeOrPinnedMode[] = {
DEBUG_PRINT_LAYER_HIERARCHY,
DEBUG_PRINT_VIEW_HIERARCHY,
DEBUG_PRINT_WINDOW_HIERARCHY,
@@ -505,8 +505,21 @@ const AcceleratorAction kActionsAllowedInAppMode[] = {
#endif // defined(OS_CHROMEOS)
};
-const size_t kActionsAllowedInAppModeLength =
- arraysize(kActionsAllowedInAppMode);
+const size_t kActionsAllowedInAppModeOrPinnedModeLength =
+ arraysize(kActionsAllowedInAppModeOrPinnedMode);
+
+const AcceleratorAction kActionsAllowedInPinnedMode[] = {
+ TAKE_WINDOW_SCREENSHOT,
+ TAKE_PARTIAL_SCREENSHOT,
+ TAKE_SCREENSHOT,
+#if defined(OS_CHROMEOS)
+ LOCK_SCREEN,
+ SUSPEND,
+#endif
+};
+
+const size_t kActionsAllowedInPinnedModeLength =
+ arraysize(kActionsAllowedInPinnedMode);
const AcceleratorAction kActionsNeedingWindow[] = {
CYCLE_BACKWARD_MRU,
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698