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

Side by Side Diff: ash/accelerators/accelerator_controller.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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.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_CONTROLLER_H_ 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ 6 #define ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Actions allowed when a modal window is up. 202 // Actions allowed when a modal window is up.
203 std::set<int> actions_allowed_at_modal_window_; 203 std::set<int> actions_allowed_at_modal_window_;
204 // Preferred actions. See accelerator_table.h for details. 204 // Preferred actions. See accelerator_table.h for details.
205 std::set<int> preferred_actions_; 205 std::set<int> preferred_actions_;
206 // Reserved actions. See accelerator_table.h for details. 206 // Reserved actions. See accelerator_table.h for details.
207 std::set<int> reserved_actions_; 207 std::set<int> reserved_actions_;
208 // Actions which will not be repeated while holding the accelerator key. 208 // Actions which will not be repeated while holding the accelerator key.
209 std::set<int> nonrepeatable_actions_; 209 std::set<int> nonrepeatable_actions_;
210 // Actions allowed in app mode. 210 // Actions allowed in app mode.
211 std::set<int> actions_allowed_in_app_mode_; 211 std::set<int> actions_allowed_in_app_mode_;
212 // Actions allowed in pinned mode.
213 std::set<int> actions_allowed_in_pinned_mode_;
212 // Actions disallowed if there are no windows. 214 // Actions disallowed if there are no windows.
213 std::set<int> actions_needing_window_; 215 std::set<int> actions_needing_window_;
214 // Actions that can be performed without closing the menu (if one is present). 216 // Actions that can be performed without closing the menu (if one is present).
215 std::set<int> actions_keeping_menu_open_; 217 std::set<int> actions_keeping_menu_open_;
216 218
217 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); 219 DISALLOW_COPY_AND_ASSIGN(AcceleratorController);
218 }; 220 };
219 221
220 } // namespace ash 222 } // namespace ash
221 223
222 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ 224 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698