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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |