| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 class AccessibilityDelegate; | 78 class AccessibilityDelegate; |
| 79 class AshNativeCursorManager; | 79 class AshNativeCursorManager; |
| 80 class AutoclickController; | 80 class AutoclickController; |
| 81 class DesktopBackgroundController; | 81 class DesktopBackgroundController; |
| 82 class DisplayController; | 82 class DisplayController; |
| 83 class FirstRunHelper; | 83 class FirstRunHelper; |
| 84 class GPUSupport; | 84 class GPUSupport; |
| 85 class HighContrastController; | 85 class HighContrastController; |
| 86 class LockStateController; | 86 class LockStateController; |
| 87 class MagnificationController; | 87 class MagnificationController; |
| 88 class MaximizeModeController; |
| 88 class MediaDelegate; | 89 class MediaDelegate; |
| 89 class MruWindowTracker; | 90 class MruWindowTracker; |
| 90 class NestedDispatcherController; | 91 class NestedDispatcherController; |
| 91 class NewWindowDelegate; | 92 class NewWindowDelegate; |
| 92 class PartialMagnificationController; | 93 class PartialMagnificationController; |
| 93 class PowerButtonController; | 94 class PowerButtonController; |
| 94 class WindowTreeHostFactory; | 95 class WindowTreeHostFactory; |
| 95 class ScreenAsh; | 96 class ScreenAsh; |
| 96 class SessionStateDelegate; | 97 class SessionStateDelegate; |
| 97 class Shelf; | 98 class Shelf; |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 return shadow_controller_.get(); | 499 return shadow_controller_.get(); |
| 499 } | 500 } |
| 500 | 501 |
| 501 // Starts the animation that occurs on first login. | 502 // Starts the animation that occurs on first login. |
| 502 void DoInitialWorkspaceAnimation(); | 503 void DoInitialWorkspaceAnimation(); |
| 503 | 504 |
| 504 AccelerometerController* accelerometer_controller() { | 505 AccelerometerController* accelerometer_controller() { |
| 505 return accelerometer_controller_.get(); | 506 return accelerometer_controller_.get(); |
| 506 } | 507 } |
| 507 | 508 |
| 509 MaximizeModeController* maximize_mode_controller() { |
| 510 return maximize_mode_controller_.get(); |
| 511 } |
| 512 |
| 508 #if defined(OS_CHROMEOS) | 513 #if defined(OS_CHROMEOS) |
| 509 #if defined(USE_X11) | 514 #if defined(USE_X11) |
| 510 // TODO(oshima): Move these objects to DisplayController. | 515 // TODO(oshima): Move these objects to DisplayController. |
| 511 ui::OutputConfigurator* output_configurator() { | 516 ui::OutputConfigurator* output_configurator() { |
| 512 return output_configurator_.get(); | 517 return output_configurator_.get(); |
| 513 } | 518 } |
| 514 internal::OutputConfiguratorAnimation* output_configurator_animation() { | 519 internal::OutputConfiguratorAnimation* output_configurator_animation() { |
| 515 return output_configurator_animation_.get(); | 520 return output_configurator_animation_.get(); |
| 516 } | 521 } |
| 517 internal::DisplayErrorObserver* display_error_observer() { | 522 internal::DisplayErrorObserver* display_error_observer() { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 scoped_ptr<internal::ProjectingObserver> projecting_observer_; | 733 scoped_ptr<internal::ProjectingObserver> projecting_observer_; |
| 729 | 734 |
| 730 // Listens for output changes and updates the display manager. | 735 // Listens for output changes and updates the display manager. |
| 731 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_; | 736 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_; |
| 732 | 737 |
| 733 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_; | 738 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_; |
| 734 scoped_ptr<ui::EventHandler> speech_feedback_handler_; | 739 scoped_ptr<ui::EventHandler> speech_feedback_handler_; |
| 735 #endif // defined(USE_X11) | 740 #endif // defined(USE_X11) |
| 736 #endif // defined(OS_CHROMEOS) | 741 #endif // defined(OS_CHROMEOS) |
| 737 | 742 |
| 743 scoped_ptr<MaximizeModeController> maximize_mode_controller_; |
| 744 |
| 738 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a | 745 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a |
| 739 // pointer to vend to test code. | 746 // pointer to vend to test code. |
| 740 AshNativeCursorManager* native_cursor_manager_; | 747 AshNativeCursorManager* native_cursor_manager_; |
| 741 ::wm::CursorManager cursor_manager_; | 748 ::wm::CursorManager cursor_manager_; |
| 742 | 749 |
| 743 ObserverList<ShellObserver> observers_; | 750 ObserverList<ShellObserver> observers_; |
| 744 | 751 |
| 745 // For testing only: simulate that a modal window is open | 752 // For testing only: simulate that a modal window is open |
| 746 bool simulate_modal_window_open_for_testing_; | 753 bool simulate_modal_window_open_for_testing_; |
| 747 | 754 |
| 748 bool is_touch_hud_projection_enabled_; | 755 bool is_touch_hud_projection_enabled_; |
| 749 | 756 |
| 750 // Injected content::GPUDataManager support. | 757 // Injected content::GPUDataManager support. |
| 751 scoped_ptr<GPUSupport> gpu_support_; | 758 scoped_ptr<GPUSupport> gpu_support_; |
| 752 | 759 |
| 753 DISALLOW_COPY_AND_ASSIGN(Shell); | 760 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 754 }; | 761 }; |
| 755 | 762 |
| 756 } // namespace ash | 763 } // namespace ash |
| 757 | 764 |
| 758 #endif // ASH_SHELL_H_ | 765 #endif // ASH_SHELL_H_ |
| OLD | NEW |