| 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 #include "ash/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/accelerators/accelerator_controller.h" | 10 #include "ash/accelerators/accelerator_controller.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 #if defined(USE_X11) | 113 #if defined(USE_X11) |
| 114 #include "ash/accelerators/magnifier_key_scroller.h" | 114 #include "ash/accelerators/magnifier_key_scroller.h" |
| 115 #include "ash/accelerators/spoken_feedback_toggler.h" | 115 #include "ash/accelerators/spoken_feedback_toggler.h" |
| 116 #include "ash/ash_constants.h" | 116 #include "ash/ash_constants.h" |
| 117 #include "ash/display/display_change_observer_chromeos.h" | 117 #include "ash/display/display_change_observer_chromeos.h" |
| 118 #include "ash/display/display_error_observer_chromeos.h" | 118 #include "ash/display/display_error_observer_chromeos.h" |
| 119 #include "ash/display/output_configurator_animation.h" | 119 #include "ash/display/output_configurator_animation.h" |
| 120 #include "ash/display/projecting_observer_chromeos.h" | 120 #include "ash/display/projecting_observer_chromeos.h" |
| 121 #include "base/message_loop/message_pump_x11.h" | 121 #include "base/message_loop/message_pump_x11.h" |
| 122 #include "base/sys_info.h" | 122 #include "base/sys_info.h" |
| 123 #include "chromeos/display/output_configurator.h" | 123 #include "ui/display/chromeos/output_configurator.h" |
| 124 #endif // defined(USE_X11) | 124 #endif // defined(USE_X11) |
| 125 #include "ash/display/resolution_notification_controller.h" | 125 #include "ash/display/resolution_notification_controller.h" |
| 126 #include "ash/sticky_keys/sticky_keys_controller.h" | 126 #include "ash/sticky_keys/sticky_keys_controller.h" |
| 127 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" | 127 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" |
| 128 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" | 128 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" |
| 129 #include "ash/system/chromeos/power/power_event_observer.h" | 129 #include "ash/system/chromeos/power/power_event_observer.h" |
| 130 #include "ash/system/chromeos/power/power_status.h" | 130 #include "ash/system/chromeos/power/power_status.h" |
| 131 #include "ash/system/chromeos/power/user_activity_notifier.h" | 131 #include "ash/system/chromeos/power/user_activity_notifier.h" |
| 132 #include "ash/system/chromeos/power/video_activity_notifier.h" | 132 #include "ash/system/chromeos/power/video_activity_notifier.h" |
| 133 #include "ash/system/chromeos/session/logout_confirmation_controller.h" | 133 #include "ash/system/chromeos/session/logout_confirmation_controller.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 //////////////////////////////////////////////////////////////////////////////// | 591 //////////////////////////////////////////////////////////////////////////////// |
| 592 // Shell, private: | 592 // Shell, private: |
| 593 | 593 |
| 594 Shell::Shell(ShellDelegate* delegate) | 594 Shell::Shell(ShellDelegate* delegate) |
| 595 : target_root_window_(NULL), | 595 : target_root_window_(NULL), |
| 596 scoped_target_root_window_(NULL), | 596 scoped_target_root_window_(NULL), |
| 597 delegate_(delegate), | 597 delegate_(delegate), |
| 598 window_positioner_(new WindowPositioner), | 598 window_positioner_(new WindowPositioner), |
| 599 activation_client_(NULL), | 599 activation_client_(NULL), |
| 600 #if defined(OS_CHROMEOS) && defined(USE_X11) | 600 #if defined(OS_CHROMEOS) && defined(USE_X11) |
| 601 output_configurator_(new chromeos::OutputConfigurator()), | 601 output_configurator_(new ui::OutputConfigurator()), |
| 602 #endif // defined(OS_CHROMEOS) && defined(USE_X11) | 602 #endif // defined(OS_CHROMEOS) && defined(USE_X11) |
| 603 native_cursor_manager_(new AshNativeCursorManager), | 603 native_cursor_manager_(new AshNativeCursorManager), |
| 604 cursor_manager_(scoped_ptr<views::corewm::NativeCursorManager>( | 604 cursor_manager_(scoped_ptr<views::corewm::NativeCursorManager>( |
| 605 native_cursor_manager_)), | 605 native_cursor_manager_)), |
| 606 simulate_modal_window_open_for_testing_(false), | 606 simulate_modal_window_open_for_testing_(false), |
| 607 is_touch_hud_projection_enabled_(false) { | 607 is_touch_hud_projection_enabled_(false) { |
| 608 DCHECK(delegate_.get()); | 608 DCHECK(delegate_.get()); |
| 609 gpu_support_.reset(delegate_->CreateGPUSupport()); | 609 gpu_support_.reset(delegate_->CreateGPUSupport()); |
| 610 display_manager_.reset(new internal::DisplayManager); | 610 display_manager_.reset(new internal::DisplayManager); |
| 611 display_controller_.reset(new DisplayController); | 611 display_controller_.reset(new DisplayController); |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 //////////////////////////////////////////////////////////////////////////////// | 1098 //////////////////////////////////////////////////////////////////////////////// |
| 1099 // Shell, aura::client::ActivationChangeObserver implementation: | 1099 // Shell, aura::client::ActivationChangeObserver implementation: |
| 1100 | 1100 |
| 1101 void Shell::OnWindowActivated(aura::Window* gained_active, | 1101 void Shell::OnWindowActivated(aura::Window* gained_active, |
| 1102 aura::Window* lost_active) { | 1102 aura::Window* lost_active) { |
| 1103 if (gained_active) | 1103 if (gained_active) |
| 1104 target_root_window_ = gained_active->GetRootWindow(); | 1104 target_root_window_ = gained_active->GetRootWindow(); |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 } // namespace ash | 1107 } // namespace ash |
| OLD | NEW |