| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 void set_browser_context(content::BrowserContext* browser_context) { | 414 void set_browser_context(content::BrowserContext* browser_context) { |
| 415 browser_context_ = browser_context; | 415 browser_context_ = browser_context; |
| 416 } | 416 } |
| 417 | 417 |
| 418 // Initializes the root window to be used for a secondary display. | 418 // Initializes the root window to be used for a secondary display. |
| 419 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root); | 419 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root); |
| 420 | 420 |
| 421 // Starts the animation that occurs on first login. | 421 // Starts the animation that occurs on first login. |
| 422 void DoInitialWorkspaceAnimation(); | 422 void DoInitialWorkspaceAnimation(); |
| 423 | 423 |
| 424 #if defined(OS_CHROMEOS) | 424 #if defined(OS_CHROMEOS) && defined(USE_X11) |
| 425 // TODO(oshima): Move these objects to DisplayController. | 425 // TODO(oshima): Move these objects to DisplayController. |
| 426 chromeos::OutputConfigurator* output_configurator() { | 426 chromeos::OutputConfigurator* output_configurator() { |
| 427 return output_configurator_.get(); | 427 return output_configurator_.get(); |
| 428 } | 428 } |
| 429 internal::OutputConfiguratorAnimation* output_configurator_animation() { | 429 internal::OutputConfiguratorAnimation* output_configurator_animation() { |
| 430 return output_configurator_animation_.get(); | 430 return output_configurator_animation_.get(); |
| 431 } | 431 } |
| 432 internal::DisplayErrorObserver* display_error_observer() { | 432 internal::DisplayErrorObserver* display_error_observer() { |
| 433 return display_error_observer_.get(); | 433 return display_error_observer_.get(); |
| 434 } | 434 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 #if !defined(OS_MACOSX) | 553 #if !defined(OS_MACOSX) |
| 554 // An event filter that pre-handles global accelerators. | 554 // An event filter that pre-handles global accelerators. |
| 555 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; | 555 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; |
| 556 #endif | 556 #endif |
| 557 | 557 |
| 558 // An event filter that pre-handles all key events to send them to an IME. | 558 // An event filter that pre-handles all key events to send them to an IME. |
| 559 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; | 559 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; |
| 560 | 560 |
| 561 scoped_ptr<internal::DisplayManager> display_manager_; | 561 scoped_ptr<internal::DisplayManager> display_manager_; |
| 562 | 562 |
| 563 #if defined(OS_CHROMEOS) | 563 #if defined(OS_CHROMEOS) && defined(USE_X11) |
| 564 // Controls video output device state. | 564 // Controls video output device state. |
| 565 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; | 565 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; |
| 566 scoped_ptr<internal::OutputConfiguratorAnimation> | 566 scoped_ptr<internal::OutputConfiguratorAnimation> |
| 567 output_configurator_animation_; | 567 output_configurator_animation_; |
| 568 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_; | 568 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_; |
| 569 | 569 |
| 570 // Receives output change events and udpates the display manager. | 570 // Receives output change events and udpates the display manager. |
| 571 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; | 571 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; |
| 572 #endif // defined(OS_CHROMEOS) | 572 #endif // defined(OS_CHROMEOS) |
| 573 | 573 |
| 574 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a | 574 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a |
| 575 // pointer to vend to test code. | 575 // pointer to vend to test code. |
| 576 AshNativeCursorManager* native_cursor_manager_; | 576 AshNativeCursorManager* native_cursor_manager_; |
| 577 views::corewm::CursorManager cursor_manager_; | 577 views::corewm::CursorManager cursor_manager_; |
| 578 | 578 |
| 579 ObserverList<ShellObserver> observers_; | 579 ObserverList<ShellObserver> observers_; |
| 580 | 580 |
| 581 // Used by ash/shell. | 581 // Used by ash/shell. |
| 582 content::BrowserContext* browser_context_; | 582 content::BrowserContext* browser_context_; |
| 583 | 583 |
| 584 // For testing only: simulate that a modal window is open | 584 // For testing only: simulate that a modal window is open |
| 585 bool simulate_modal_window_open_for_testing_; | 585 bool simulate_modal_window_open_for_testing_; |
| 586 | 586 |
| 587 DISALLOW_COPY_AND_ASSIGN(Shell); | 587 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 588 }; | 588 }; |
| 589 | 589 |
| 590 } // namespace ash | 590 } // namespace ash |
| 591 | 591 |
| 592 #endif // ASH_SHELL_H_ | 592 #endif // ASH_SHELL_H_ |
| OLD | NEW |