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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 scoped_ptr<ScreenshotDelegate> screenshot_delegate_; | 108 scoped_ptr<ScreenshotDelegate> screenshot_delegate_; |
109 | 109 |
110 // A map from accelerators to the AcceleratorAction values, which are used in | 110 // A map from accelerators to the AcceleratorAction values, which are used in |
111 // the implementation. | 111 // the implementation. |
112 std::map<ui::Accelerator, int> accelerators_; | 112 std::map<ui::Accelerator, int> accelerators_; |
113 | 113 |
114 // Actions allowed when the user is not signed in. | 114 // Actions allowed when the user is not signed in. |
115 std::set<int> actions_allowed_at_login_screen_; | 115 std::set<int> actions_allowed_at_login_screen_; |
116 // Actions allowed when the screen is locked. | 116 // Actions allowed when the screen is locked. |
117 std::set<int> actions_allowed_at_lock_screen_; | 117 std::set<int> actions_allowed_at_lock_screen_; |
| 118 // Actions allowed when a modal window is up. |
| 119 std::set<int> actions_allowed_at_modal_window_; |
118 // Reserved actions. See accelerator_table.h for details. | 120 // Reserved actions. See accelerator_table.h for details. |
119 std::set<int> reserved_actions_; | 121 std::set<int> reserved_actions_; |
120 | 122 |
121 // If toggling maximized is suppressed until the key release event. | 123 // If toggling maximized is suppressed until the key release event. |
122 bool toggle_maximized_suppressed_; | 124 bool toggle_maximized_suppressed_; |
123 | 125 |
124 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); | 126 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); |
125 }; | 127 }; |
126 | 128 |
127 } // namespace ash | 129 } // namespace ash |
128 | 130 |
129 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ | 131 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ |
OLD | NEW |