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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 25 matching lines...) Expand all Loading... | |
36 } | 36 } |
37 | 37 |
38 namespace ash { | 38 namespace ash { |
39 | 39 |
40 class AcceleratorController; | 40 class AcceleratorController; |
41 class AudioController; | 41 class AudioController; |
42 class BrightnessController; | 42 class BrightnessController; |
43 class Launcher; | 43 class Launcher; |
44 class NestedDispatcherController; | 44 class NestedDispatcherController; |
45 class PowerButtonController; | 45 class PowerButtonController; |
46 class PowerStatusController; | |
46 class ShellDelegate; | 47 class ShellDelegate; |
47 class SystemTrayDelegate; | 48 class SystemTrayDelegate; |
48 class SystemTray; | 49 class SystemTray; |
49 class VideoDetector; | 50 class VideoDetector; |
50 class WindowCycleController; | 51 class WindowCycleController; |
51 | 52 |
52 namespace internal { | 53 namespace internal { |
53 class ActivationController; | 54 class ActivationController; |
54 class AcceleratorFilter; | 55 class AcceleratorFilter; |
55 class AppList; | 56 class AppList; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 } | 192 } |
192 WindowCycleController* window_cycle_controller() { | 193 WindowCycleController* window_cycle_controller() { |
193 return window_cycle_controller_.get(); | 194 return window_cycle_controller_.get(); |
194 } | 195 } |
195 AudioController* audio_controller() const { | 196 AudioController* audio_controller() const { |
196 return audio_controller_; | 197 return audio_controller_; |
197 } | 198 } |
198 BrightnessController* brightness_controller() const { | 199 BrightnessController* brightness_controller() const { |
199 return brightness_controller_; | 200 return brightness_controller_; |
200 } | 201 } |
202 PowerStatusController* power_status_controller() const { | |
203 return power_status_controller_; | |
204 } | |
201 | 205 |
202 ShellDelegate* delegate() { return delegate_.get(); } | 206 ShellDelegate* delegate() { return delegate_.get(); } |
203 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); } | 207 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); } |
204 | 208 |
205 Launcher* launcher() { return launcher_.get(); } | 209 Launcher* launcher() { return launcher_.get(); } |
206 | 210 |
207 internal::ShelfLayoutManager* shelf() const { return shelf_; } | 211 internal::ShelfLayoutManager* shelf() const { return shelf_; } |
208 | 212 |
209 SystemTray* tray() const { return tray_.get(); } | 213 SystemTray* tray() const { return tray_.get(); } |
210 | 214 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
275 scoped_ptr<internal::DragDropController> drag_drop_controller_; | 279 scoped_ptr<internal::DragDropController> drag_drop_controller_; |
276 scoped_ptr<internal::WorkspaceController> workspace_controller_; | 280 scoped_ptr<internal::WorkspaceController> workspace_controller_; |
277 scoped_ptr<internal::ShadowController> shadow_controller_; | 281 scoped_ptr<internal::ShadowController> shadow_controller_; |
278 scoped_ptr<internal::TooltipController> tooltip_controller_; | 282 scoped_ptr<internal::TooltipController> tooltip_controller_; |
279 scoped_ptr<internal::VisibilityController> visibility_controller_; | 283 scoped_ptr<internal::VisibilityController> visibility_controller_; |
280 scoped_ptr<PowerButtonController> power_button_controller_; | 284 scoped_ptr<PowerButtonController> power_button_controller_; |
281 scoped_ptr<VideoDetector> video_detector_; | 285 scoped_ptr<VideoDetector> video_detector_; |
282 scoped_ptr<WindowCycleController> window_cycle_controller_; | 286 scoped_ptr<WindowCycleController> window_cycle_controller_; |
283 scoped_ptr<internal::FocusCycler> focus_cycler_; | 287 scoped_ptr<internal::FocusCycler> focus_cycler_; |
284 | 288 |
285 // The audio and brightness controllers are not owner by the shell. | 289 // These controllers are not owner by the shell. |
stevenjb
2012/03/02 18:18:26
nit: s/owner/owned/
sadrul
2012/03/02 18:52:42
Done.
| |
286 AudioController* audio_controller_; | 290 AudioController* audio_controller_; |
287 BrightnessController* brightness_controller_; | 291 BrightnessController* brightness_controller_; |
292 PowerStatusController* power_status_controller_; | |
288 | 293 |
289 // An event filter that pre-handles all key events to send them to an IME. | 294 // An event filter that pre-handles all key events to send them to an IME. |
290 scoped_ptr<internal::InputMethodEventFilter> input_method_filter_; | 295 scoped_ptr<internal::InputMethodEventFilter> input_method_filter_; |
291 | 296 |
292 // An event filter that pre-handles key events while the partial | 297 // An event filter that pre-handles key events while the partial |
293 // screenshot UI is active. | 298 // screenshot UI is active. |
294 scoped_ptr<internal::PartialScreenshotEventFilter> partial_screenshot_filter_; | 299 scoped_ptr<internal::PartialScreenshotEventFilter> partial_screenshot_filter_; |
295 | 300 |
296 #if !defined(OS_MACOSX) | 301 #if !defined(OS_MACOSX) |
297 // An event filter that pre-handles global accelerators. | 302 // An event filter that pre-handles global accelerators. |
(...skipping 24 matching lines...) Expand all Loading... | |
322 // Offset between the corner of the status area and the corner of the screen | 327 // Offset between the corner of the status area and the corner of the screen |
323 // when in the compact window mode. | 328 // when in the compact window mode. |
324 gfx::Size compact_status_area_offset_; | 329 gfx::Size compact_status_area_offset_; |
325 | 330 |
326 DISALLOW_COPY_AND_ASSIGN(Shell); | 331 DISALLOW_COPY_AND_ASSIGN(Shell); |
327 }; | 332 }; |
328 | 333 |
329 } // namespace ash | 334 } // namespace ash |
330 | 335 |
331 #endif // ASH_SHELL_H_ | 336 #endif // ASH_SHELL_H_ |
OLD | NEW |