| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 #if defined(USE_X11) | 119 #if defined(USE_X11) |
| 120 #include "ash/accelerators/magnifier_key_scroller.h" | 120 #include "ash/accelerators/magnifier_key_scroller.h" |
| 121 #include "ash/accelerators/spoken_feedback_toggler.h" | 121 #include "ash/accelerators/spoken_feedback_toggler.h" |
| 122 #include "ash/ash_constants.h" | 122 #include "ash/ash_constants.h" |
| 123 #include "ash/display/display_change_observer_chromeos.h" | 123 #include "ash/display/display_change_observer_chromeos.h" |
| 124 #include "ash/display/display_error_observer_chromeos.h" | 124 #include "ash/display/display_error_observer_chromeos.h" |
| 125 #include "ash/display/output_configurator_animation.h" | 125 #include "ash/display/output_configurator_animation.h" |
| 126 #include "ash/display/projecting_observer_chromeos.h" | 126 #include "ash/display/projecting_observer_chromeos.h" |
| 127 #include "base/message_loop/message_pump_x11.h" | 127 #include "base/message_loop/message_pump_x11.h" |
| 128 #include "base/sys_info.h" | 128 #include "base/sys_info.h" |
| 129 #include "chromeos/display/output_configurator.h" | 129 #include "ui/display/chromeos/output_configurator.h" |
| 130 #endif // defined(USE_X11) | 130 #endif // defined(USE_X11) |
| 131 #include "ash/display/resolution_notification_controller.h" | 131 #include "ash/display/resolution_notification_controller.h" |
| 132 #include "ash/sticky_keys/sticky_keys_controller.h" | 132 #include "ash/sticky_keys/sticky_keys_controller.h" |
| 133 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" | 133 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" |
| 134 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" | 134 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" |
| 135 #include "ash/system/chromeos/power/power_event_observer.h" | 135 #include "ash/system/chromeos/power/power_event_observer.h" |
| 136 #include "ash/system/chromeos/power/power_status.h" | 136 #include "ash/system/chromeos/power/power_status.h" |
| 137 #include "ash/system/chromeos/power/user_activity_notifier.h" | 137 #include "ash/system/chromeos/power/user_activity_notifier.h" |
| 138 #include "ash/system/chromeos/power/video_activity_notifier.h" | 138 #include "ash/system/chromeos/power/video_activity_notifier.h" |
| 139 #endif // defined(OS_CHROMEOS) | 139 #endif // defined(OS_CHROMEOS) |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 //////////////////////////////////////////////////////////////////////////////// | 595 //////////////////////////////////////////////////////////////////////////////// |
| 596 // Shell, private: | 596 // Shell, private: |
| 597 | 597 |
| 598 Shell::Shell(ShellDelegate* delegate) | 598 Shell::Shell(ShellDelegate* delegate) |
| 599 : target_root_window_(NULL), | 599 : target_root_window_(NULL), |
| 600 scoped_target_root_window_(NULL), | 600 scoped_target_root_window_(NULL), |
| 601 delegate_(delegate), | 601 delegate_(delegate), |
| 602 window_positioner_(new WindowPositioner), | 602 window_positioner_(new WindowPositioner), |
| 603 activation_client_(NULL), | 603 activation_client_(NULL), |
| 604 #if defined(OS_CHROMEOS) && defined(USE_X11) | 604 #if defined(OS_CHROMEOS) && defined(USE_X11) |
| 605 output_configurator_(new chromeos::OutputConfigurator()), | 605 output_configurator_(new ui::OutputConfigurator()), |
| 606 #endif // defined(OS_CHROMEOS) && defined(USE_X11) | 606 #endif // defined(OS_CHROMEOS) && defined(USE_X11) |
| 607 native_cursor_manager_(new AshNativeCursorManager), | 607 native_cursor_manager_(new AshNativeCursorManager), |
| 608 cursor_manager_(scoped_ptr<views::corewm::NativeCursorManager>( | 608 cursor_manager_(scoped_ptr<views::corewm::NativeCursorManager>( |
| 609 native_cursor_manager_)), | 609 native_cursor_manager_)), |
| 610 simulate_modal_window_open_for_testing_(false), | 610 simulate_modal_window_open_for_testing_(false), |
| 611 is_touch_hud_projection_enabled_(false) { | 611 is_touch_hud_projection_enabled_(false) { |
| 612 DCHECK(delegate_.get()); | 612 DCHECK(delegate_.get()); |
| 613 gpu_support_.reset(delegate_->CreateGPUSupport()); | 613 gpu_support_.reset(delegate_->CreateGPUSupport()); |
| 614 display_manager_.reset(new internal::DisplayManager); | 614 display_manager_.reset(new internal::DisplayManager); |
| 615 display_controller_.reset(new DisplayController); | 615 display_controller_.reset(new DisplayController); |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 //////////////////////////////////////////////////////////////////////////////// | 1108 //////////////////////////////////////////////////////////////////////////////// |
| 1109 // Shell, aura::client::ActivationChangeObserver implementation: | 1109 // Shell, aura::client::ActivationChangeObserver implementation: |
| 1110 | 1110 |
| 1111 void Shell::OnWindowActivated(aura::Window* gained_active, | 1111 void Shell::OnWindowActivated(aura::Window* gained_active, |
| 1112 aura::Window* lost_active) { | 1112 aura::Window* lost_active) { |
| 1113 if (gained_active) | 1113 if (gained_active) |
| 1114 target_root_window_ = gained_active->GetRootWindow(); | 1114 target_root_window_ = gained_active->GetRootWindow(); |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 } // namespace ash | 1117 } // namespace ash |
| OLD | NEW |