Chromium Code Reviews| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 | 104 |
| 105 void SetBrightnessControlDelegate( | 105 void SetBrightnessControlDelegate( |
| 106 scoped_ptr<BrightnessControlDelegate> brightness_control_delegate); | 106 scoped_ptr<BrightnessControlDelegate> brightness_control_delegate); |
| 107 void SetImeControlDelegate( | 107 void SetImeControlDelegate( |
| 108 scoped_ptr<ImeControlDelegate> ime_control_delegate); | 108 scoped_ptr<ImeControlDelegate> ime_control_delegate); |
| 109 void SetScreenshotDelegate( | 109 void SetScreenshotDelegate( |
| 110 scoped_ptr<ScreenshotDelegate> screenshot_delegate); | 110 scoped_ptr<ScreenshotDelegate> screenshot_delegate); |
| 111 BrightnessControlDelegate* brightness_control_delegate() const { | 111 BrightnessControlDelegate* brightness_control_delegate() const { |
| 112 return brightness_control_delegate_.get(); | 112 return brightness_control_delegate_.get(); |
| 113 } | 113 } |
| 114 ScreenshotDelegate* screenshot_delegate() const { | |
|
sky
2014/01/10 00:02:52
Generally you want const methods to return const o
mfomitchev
2014/01/10 18:06:50
Done.
| |
| 115 return screenshot_delegate_.get(); | |
| 116 } | |
| 114 | 117 |
| 115 // Provides access to an object holding contextual information. | 118 // Provides access to an object holding contextual information. |
| 116 AcceleratorControllerContext* context() { | 119 AcceleratorControllerContext* context() { |
| 117 return &context_; | 120 return &context_; |
| 118 } | 121 } |
| 119 | 122 |
| 120 // Provides access to the ExitWarningHandler for testing. | 123 // Provides access to the ExitWarningHandler for testing. |
| 121 ExitWarningHandler* GetExitWarningHandlerForTest() { | 124 ExitWarningHandler* GetExitWarningHandlerForTest() { |
| 122 return &exit_warning_handler_; | 125 return &exit_warning_handler_; |
| 123 } | 126 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 std::set<int> actions_allowed_in_app_mode_; | 174 std::set<int> actions_allowed_in_app_mode_; |
| 172 // Actions disallowed if there are no windows. | 175 // Actions disallowed if there are no windows. |
| 173 std::set<int> actions_needing_window_; | 176 std::set<int> actions_needing_window_; |
| 174 | 177 |
| 175 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); | 178 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); |
| 176 }; | 179 }; |
| 177 | 180 |
| 178 } // namespace ash | 181 } // namespace ash |
| 179 | 182 |
| 180 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ | 183 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ |
| OLD | NEW |