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

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

Issue 77453013: Add an accessibility alert for incorrect use of some accelerators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 7 years, 1 month 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Actions allowed when the screen is locked. 162 // Actions allowed when the screen is locked.
163 std::set<int> actions_allowed_at_lock_screen_; 163 std::set<int> actions_allowed_at_lock_screen_;
164 // Actions allowed when a modal window is up. 164 // Actions allowed when a modal window is up.
165 std::set<int> actions_allowed_at_modal_window_; 165 std::set<int> actions_allowed_at_modal_window_;
166 // Reserved actions. See accelerator_table.h for details. 166 // Reserved actions. See accelerator_table.h for details.
167 std::set<int> reserved_actions_; 167 std::set<int> reserved_actions_;
168 // Actions which will not be repeated while holding the accelerator key. 168 // Actions which will not be repeated while holding the accelerator key.
169 std::set<int> nonrepeatable_actions_; 169 std::set<int> nonrepeatable_actions_;
170 // Actions allowed in app mode. 170 // Actions allowed in app mode.
171 std::set<int> actions_allowed_in_app_mode_; 171 std::set<int> actions_allowed_in_app_mode_;
172 // Actions disallowed if there are no windows.
173 std::set<int> actions_needing_window_;
172 174
173 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); 175 DISALLOW_COPY_AND_ASSIGN(AcceleratorController);
174 }; 176 };
175 177
176 } // namespace ash 178 } // namespace ash
177 179
178 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ 180 #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