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 | |
84 private: | 80 private: |
85 // Initializes the accelerators this class handles as a target. | 81 // Initializes the accelerators this class handles as a target. |
86 void Init(); | 82 void Init(); |
87 | 83 |
88 // Switches to a 0-indexed (in order of creation) window. | 84 // Switches to a 0-indexed (in order of creation) window. |
89 // A negative index switches to the last window in the list. | 85 // A negative index switches to the last window in the list. |
90 void SwitchToWindow(int window); | 86 void SwitchToWindow(int window); |
91 | 87 |
92 scoped_ptr<ui::AcceleratorManager> accelerator_manager_; | 88 scoped_ptr<ui::AcceleratorManager> accelerator_manager_; |
93 | 89 |
(...skipping 11 matching lines...) Expand all Loading... |
105 | 101 |
106 // Actions allowed when the user is not signed in or screen is locked | 102 // Actions allowed when the user is not signed in or screen is locked |
107 std::set<int> actions_allowed_at_login_screen_; | 103 std::set<int> actions_allowed_at_login_screen_; |
108 | 104 |
109 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); | 105 DISALLOW_COPY_AND_ASSIGN(AcceleratorController); |
110 }; | 106 }; |
111 | 107 |
112 } // namespace ash | 108 } // namespace ash |
113 | 109 |
114 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ | 110 #endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_ |
OLD | NEW |