Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ash/shell.cc

Issue 611423002: [WIP][Ozone] Support external touchscreens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-touchscreen
Patch Set: . Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shell.h ('k') | ash/touch/touch_transformer_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 #include "ui/wm/core/nested_accelerator_controller.h" 112 #include "ui/wm/core/nested_accelerator_controller.h"
113 #include "ui/wm/core/shadow_controller.h" 113 #include "ui/wm/core/shadow_controller.h"
114 #include "ui/wm/core/user_activity_detector.h" 114 #include "ui/wm/core/user_activity_detector.h"
115 #include "ui/wm/core/visibility_controller.h" 115 #include "ui/wm/core/visibility_controller.h"
116 #include "ui/wm/core/window_modality_controller.h" 116 #include "ui/wm/core/window_modality_controller.h"
117 117
118 #if defined(OS_CHROMEOS) 118 #if defined(OS_CHROMEOS)
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/touch/touch_transformer_controller.h"
123 #include "ui/gfx/x/x11_types.h" 122 #include "ui/gfx/x/x11_types.h"
124 #endif // defined(USE_X11) 123 #endif // defined(USE_X11)
125 #include "ash/ash_constants.h" 124 #include "ash/ash_constants.h"
126 #include "ash/display/display_change_observer_chromeos.h" 125 #include "ash/display/display_change_observer_chromeos.h"
127 #include "ash/display/display_configurator_animation.h" 126 #include "ash/display/display_configurator_animation.h"
128 #include "ash/display/display_error_observer_chromeos.h" 127 #include "ash/display/display_error_observer_chromeos.h"
129 #include "ash/display/projecting_observer_chromeos.h" 128 #include "ash/display/projecting_observer_chromeos.h"
130 #include "ash/display/resolution_notification_controller.h" 129 #include "ash/display/resolution_notification_controller.h"
131 #include "ash/sticky_keys/sticky_keys_controller.h" 130 #include "ash/sticky_keys/sticky_keys_controller.h"
132 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h" 131 #include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h"
133 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h" 132 #include "ash/system/chromeos/brightness/brightness_controller_chromeos.h"
134 #include "ash/system/chromeos/power/power_event_observer.h" 133 #include "ash/system/chromeos/power/power_event_observer.h"
135 #include "ash/system/chromeos/power/power_status.h" 134 #include "ash/system/chromeos/power/power_status.h"
136 #include "ash/system/chromeos/power/video_activity_notifier.h" 135 #include "ash/system/chromeos/power/video_activity_notifier.h"
137 #include "ash/system/chromeos/session/last_window_closed_logout_reminder.h" 136 #include "ash/system/chromeos/session/last_window_closed_logout_reminder.h"
138 #include "ash/system/chromeos/session/logout_confirmation_controller.h" 137 #include "ash/system/chromeos/session/logout_confirmation_controller.h"
138 #include "ash/touch/touch_transformer_controller.h"
139 #include "base/bind_helpers.h" 139 #include "base/bind_helpers.h"
140 #include "base/sys_info.h" 140 #include "base/sys_info.h"
141 #include "chromeos/dbus/dbus_thread_manager.h" 141 #include "chromeos/dbus/dbus_thread_manager.h"
142 #include "ui/chromeos/user_activity_power_manager_notifier.h" 142 #include "ui/chromeos/user_activity_power_manager_notifier.h"
143 #include "ui/display/chromeos/display_configurator.h" 143 #include "ui/display/chromeos/display_configurator.h"
144 #endif // defined(OS_CHROMEOS) 144 #endif // defined(OS_CHROMEOS)
145 145
146 namespace ash { 146 namespace ash {
147 147
148 namespace { 148 namespace {
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 778
779 power_button_controller_.reset(); 779 power_button_controller_.reset();
780 lock_state_controller_.reset(); 780 lock_state_controller_.reset();
781 781
782 #if defined(OS_CHROMEOS) 782 #if defined(OS_CHROMEOS)
783 resolution_notification_controller_.reset(); 783 resolution_notification_controller_.reset();
784 #endif 784 #endif
785 desktop_background_controller_.reset(); 785 desktop_background_controller_.reset();
786 mouse_cursor_filter_.reset(); 786 mouse_cursor_filter_.reset();
787 787
788 #if defined(OS_CHROMEOS) && defined(USE_X11) 788 #if defined(OS_CHROMEOS)
789 touch_transformer_controller_.reset(); 789 touch_transformer_controller_.reset();
790 #endif // defined(OS_CHROMEOS) && defined(USE_X11) 790 #endif // defined(OS_CHROMEOS)
791 791
792 // This also deletes all RootWindows. Note that we invoke Shutdown() on 792 // This also deletes all RootWindows. Note that we invoke Shutdown() on
793 // DisplayController before resetting |display_controller_|, since destruction 793 // DisplayController before resetting |display_controller_|, since destruction
794 // of its owned RootWindowControllers relies on the value. 794 // of its owned RootWindowControllers relies on the value.
795 display_manager_->CreateScreenForShutdown(); 795 display_manager_->CreateScreenForShutdown();
796 display_controller_->Shutdown(); 796 display_controller_->Shutdown();
797 display_controller_.reset(); 797 display_controller_.reset();
798 virtual_keyboard_controller_.reset(); 798 virtual_keyboard_controller_.reset();
799 screen_position_controller_.reset(); 799 screen_position_controller_.reset();
800 accessibility_delegate_.reset(); 800 accessibility_delegate_.reset();
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 // Initialize system_tray_delegate_ after StatusAreaWidget is created. 1016 // Initialize system_tray_delegate_ after StatusAreaWidget is created.
1017 system_tray_delegate_->Initialize(); 1017 system_tray_delegate_->Initialize();
1018 1018
1019 #if defined(OS_CHROMEOS) 1019 #if defined(OS_CHROMEOS)
1020 // Create the LogoutConfirmationController after the SystemTrayDelegate. 1020 // Create the LogoutConfirmationController after the SystemTrayDelegate.
1021 logout_confirmation_controller_.reset(new LogoutConfirmationController( 1021 logout_confirmation_controller_.reset(new LogoutConfirmationController(
1022 base::Bind(&SystemTrayDelegate::SignOut, 1022 base::Bind(&SystemTrayDelegate::SignOut,
1023 base::Unretained(system_tray_delegate_.get())))); 1023 base::Unretained(system_tray_delegate_.get()))));
1024 #endif 1024 #endif
1025 1025
1026 #if defined(OS_CHROMEOS) && defined(USE_X11) 1026 #if defined(OS_CHROMEOS)
1027 // Create TouchTransformerController before DisplayController::InitDisplays() 1027 // Create TouchTransformerController before DisplayController::InitDisplays()
1028 // since TouchTransformerController listens on 1028 // since TouchTransformerController listens on
1029 // DisplayController::Observer::OnDisplaysInitialized(). 1029 // DisplayController::Observer::OnDisplaysInitialized().
1030 touch_transformer_controller_.reset(new TouchTransformerController()); 1030 touch_transformer_controller_.reset(new TouchTransformerController());
1031 #endif // defined(OS_CHROMEOS) && defined(USE_X11) 1031 #endif // defined(OS_CHROMEOS)
1032 1032
1033 display_controller_->InitDisplays(); 1033 display_controller_->InitDisplays();
1034 1034
1035 // It needs to be created after RootWindowController has been created 1035 // It needs to be created after RootWindowController has been created
1036 // (which calls OnWindowResized has been called, otherwise the 1036 // (which calls OnWindowResized has been called, otherwise the
1037 // widget will not paint when restoring after a browser crash. Also it needs 1037 // widget will not paint when restoring after a browser crash. Also it needs
1038 // to be created after InitSecondaryDisplays() to initialize the wallpapers in 1038 // to be created after InitSecondaryDisplays() to initialize the wallpapers in
1039 // the correct size. 1039 // the correct size.
1040 user_wallpaper_delegate_->InitializeWallpaper(); 1040 user_wallpaper_delegate_->InitializeWallpaper();
1041 1041
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 //////////////////////////////////////////////////////////////////////////////// 1159 ////////////////////////////////////////////////////////////////////////////////
1160 // Shell, aura::client::ActivationChangeObserver implementation: 1160 // Shell, aura::client::ActivationChangeObserver implementation:
1161 1161
1162 void Shell::OnWindowActivated(aura::Window* gained_active, 1162 void Shell::OnWindowActivated(aura::Window* gained_active,
1163 aura::Window* lost_active) { 1163 aura::Window* lost_active) {
1164 if (gained_active) 1164 if (gained_active)
1165 target_root_window_ = gained_active->GetRootWindow(); 1165 target_root_window_ = gained_active->GetRootWindow();
1166 } 1166 }
1167 1167
1168 } // namespace ash 1168 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/touch/touch_transformer_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698