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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 scoped_ptr<ImeControlDelegate> ime_control_delegate); | 70 scoped_ptr<ImeControlDelegate> ime_control_delegate); |
71 void SetScreenshotDelegate( | 71 void SetScreenshotDelegate( |
72 scoped_ptr<ScreenshotDelegate> screenshot_delegate); | 72 scoped_ptr<ScreenshotDelegate> screenshot_delegate); |
73 void SetVolumeControlDelegate( | 73 void SetVolumeControlDelegate( |
74 scoped_ptr<VolumeControlDelegate> volume_control_delegate); | 74 scoped_ptr<VolumeControlDelegate> volume_control_delegate); |
75 | 75 |
76 BrightnessControlDelegate* brightness_control_delegate() const { | 76 BrightnessControlDelegate* brightness_control_delegate() const { |
77 return brightness_control_delegate_.get(); | 77 return brightness_control_delegate_.get(); |
78 } | 78 } |
79 | 79 |
| 80 VolumeControlDelegate* volume_control_delegate() const { |
| 81 return volume_control_delegate_.get(); |
| 82 } |
| 83 |
80 private: | 84 private: |
81 // Initializes the accelerators this class handles as a target. | 85 // Initializes the accelerators this class handles as a target. |
82 void Init(); | 86 void Init(); |
83 | 87 |
84 // Switches to a 0-indexed (in order of creation) window. | 88 // Switches to a 0-indexed (in order of creation) window. |
85 // A negative index switches to the last window in the list. | 89 // A negative index switches to the last window in the list. |
86 void SwitchToWindow(int window); | 90 void SwitchToWindow(int window); |
87 | 91 |
88 scoped_ptr<ui::AcceleratorManager> accelerator_manager_; | 92 scoped_ptr<ui::AcceleratorManager> accelerator_manager_; |
89 | 93 |
(...skipping 11 matching lines...) Expand all Loading... |
101 | 105 |
102 // Actions allowed when the user is not signed in or screen is locked | 106 // Actions allowed when the user is not signed in or screen is locked |
103 std::set<int> actions_allowed_at_login_screen_; | 107 std::set<int> actions_allowed_at_login_screen_; |
104 | 108 |
105 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); | 109 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); |
106 }; | 110 }; |
107 | 111 |
108 } // namespace ash | 112 } // namespace ash |
109 | 113 |
110 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ | 114 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ |
OLD | NEW |