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 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace aura { | 35 namespace aura { |
36 class EventFilter; | 36 class EventFilter; |
37 class RootWindow; | 37 class RootWindow; |
38 class Window; | 38 class Window; |
39 namespace client { | 39 namespace client { |
40 class ActivationClient; | 40 class ActivationClient; |
41 class FocusClient; | 41 class FocusClient; |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
| 45 #if defined(OS_CHROMEOS) |
| 46 namespace chromeos { |
| 47 class AccelerometerReader; |
| 48 } |
| 49 #endif |
| 50 |
45 namespace gfx { | 51 namespace gfx { |
46 class ImageSkia; | 52 class ImageSkia; |
47 class Point; | 53 class Point; |
48 class Rect; | 54 class Rect; |
49 } | 55 } |
50 | 56 |
51 namespace ui { | 57 namespace ui { |
52 class DisplayConfigurator; | 58 class DisplayConfigurator; |
53 class Layer; | 59 class Layer; |
54 class UserActivityPowerManagerNotifier; | 60 class UserActivityPowerManagerNotifier; |
(...skipping 13 matching lines...) Expand all Loading... |
68 class NestedAcceleratorController; | 74 class NestedAcceleratorController; |
69 class ShadowController; | 75 class ShadowController; |
70 class VisibilityController; | 76 class VisibilityController; |
71 class UserActivityDetector; | 77 class UserActivityDetector; |
72 class WindowModalityController; | 78 class WindowModalityController; |
73 } | 79 } |
74 | 80 |
75 namespace ash { | 81 namespace ash { |
76 | 82 |
77 class AcceleratorController; | 83 class AcceleratorController; |
78 class AccelerometerController; | |
79 class AccessibilityDelegate; | 84 class AccessibilityDelegate; |
80 class AppListController; | 85 class AppListController; |
81 class AshNativeCursorManager; | 86 class AshNativeCursorManager; |
82 class AutoclickController; | 87 class AutoclickController; |
83 class BluetoothNotificationController; | 88 class BluetoothNotificationController; |
84 class CaptureController; | 89 class CaptureController; |
85 class DesktopBackgroundController; | 90 class DesktopBackgroundController; |
86 class DisplayChangeObserver; | 91 class DisplayChangeObserver; |
87 class DisplayConfiguratorAnimation; | 92 class DisplayConfiguratorAnimation; |
88 class DisplayController; | 93 class DisplayController; |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 } | 506 } |
502 | 507 |
503 // Made available for tests. | 508 // Made available for tests. |
504 ::wm::ShadowController* shadow_controller() { | 509 ::wm::ShadowController* shadow_controller() { |
505 return shadow_controller_.get(); | 510 return shadow_controller_.get(); |
506 } | 511 } |
507 | 512 |
508 // Starts the animation that occurs on first login. | 513 // Starts the animation that occurs on first login. |
509 void DoInitialWorkspaceAnimation(); | 514 void DoInitialWorkspaceAnimation(); |
510 | 515 |
511 AccelerometerController* accelerometer_controller() { | |
512 return accelerometer_controller_.get(); | |
513 } | |
514 | |
515 MaximizeModeController* maximize_mode_controller() { | 516 MaximizeModeController* maximize_mode_controller() { |
516 return maximize_mode_controller_.get(); | 517 return maximize_mode_controller_.get(); |
517 } | 518 } |
518 | 519 |
519 #if defined(OS_CHROMEOS) | 520 #if defined(OS_CHROMEOS) |
| 521 chromeos::AccelerometerReader* accelerometer_reader() { |
| 522 return accelerometer_reader_.get(); |
| 523 } |
| 524 |
520 // TODO(oshima): Move these objects to DisplayController. | 525 // TODO(oshima): Move these objects to DisplayController. |
521 ui::DisplayConfigurator* display_configurator() { | 526 ui::DisplayConfigurator* display_configurator() { |
522 return display_configurator_.get(); | 527 return display_configurator_.get(); |
523 } | 528 } |
524 DisplayConfiguratorAnimation* display_configurator_animation() { | 529 DisplayConfiguratorAnimation* display_configurator_animation() { |
525 return display_configurator_animation_.get(); | 530 return display_configurator_animation_.get(); |
526 } | 531 } |
527 DisplayErrorObserver* display_error_observer() { | 532 DisplayErrorObserver* display_error_observer() { |
528 return display_error_observer_.get(); | 533 return display_error_observer_.get(); |
529 } | 534 } |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // An event filter that pre-handles global accelerators. | 707 // An event filter that pre-handles global accelerators. |
703 scoped_ptr< ::wm::AcceleratorFilter> accelerator_filter_; | 708 scoped_ptr< ::wm::AcceleratorFilter> accelerator_filter_; |
704 | 709 |
705 // An event filter that pre-handles all key events to send them to an IME. | 710 // An event filter that pre-handles all key events to send them to an IME. |
706 scoped_ptr< ::wm::InputMethodEventFilter> input_method_filter_; | 711 scoped_ptr< ::wm::InputMethodEventFilter> input_method_filter_; |
707 | 712 |
708 scoped_ptr<DisplayManager> display_manager_; | 713 scoped_ptr<DisplayManager> display_manager_; |
709 | 714 |
710 scoped_ptr<LocaleNotificationController> locale_notification_controller_; | 715 scoped_ptr<LocaleNotificationController> locale_notification_controller_; |
711 | 716 |
712 scoped_ptr<AccelerometerController> accelerometer_controller_; | |
713 | |
714 #if defined(OS_CHROMEOS) | 717 #if defined(OS_CHROMEOS) |
| 718 scoped_ptr<chromeos::AccelerometerReader> accelerometer_reader_; |
715 scoped_ptr<PowerEventObserver> power_event_observer_; | 719 scoped_ptr<PowerEventObserver> power_event_observer_; |
716 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; | 720 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; |
717 scoped_ptr<VideoActivityNotifier> video_activity_notifier_; | 721 scoped_ptr<VideoActivityNotifier> video_activity_notifier_; |
718 scoped_ptr<StickyKeysController> sticky_keys_controller_; | 722 scoped_ptr<StickyKeysController> sticky_keys_controller_; |
719 scoped_ptr<ResolutionNotificationController> | 723 scoped_ptr<ResolutionNotificationController> |
720 resolution_notification_controller_; | 724 resolution_notification_controller_; |
721 scoped_ptr<BluetoothNotificationController> | 725 scoped_ptr<BluetoothNotificationController> |
722 bluetooth_notification_controller_; | 726 bluetooth_notification_controller_; |
723 scoped_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 727 scoped_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
724 scoped_ptr<LastWindowClosedLogoutReminder> | 728 scoped_ptr<LastWindowClosedLogoutReminder> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 | 769 |
766 // Injected content::GPUDataManager support. | 770 // Injected content::GPUDataManager support. |
767 scoped_ptr<GPUSupport> gpu_support_; | 771 scoped_ptr<GPUSupport> gpu_support_; |
768 | 772 |
769 DISALLOW_COPY_AND_ASSIGN(Shell); | 773 DISALLOW_COPY_AND_ASSIGN(Shell); |
770 }; | 774 }; |
771 | 775 |
772 } // namespace ash | 776 } // namespace ash |
773 | 777 |
774 #endif // ASH_SHELL_H_ | 778 #endif // ASH_SHELL_H_ |
OLD | NEW |