OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |