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

Side by Side Diff: ash/shell.cc

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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/shell/shell_delegate_impl.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 #include <utility> 9 #include <utility>
10 10
11 #include "ash/accelerators/accelerator_controller.h" 11 #include "ash/accelerators/accelerator_controller.h"
12 #include "ash/accelerators/accelerator_delegate.h" 12 #include "ash/accelerators/accelerator_delegate.h"
13 #include "ash/accelerators/focus_manager_factory.h" 13 #include "ash/accelerators/focus_manager_factory.h"
14 #include "ash/ash_switches.h" 14 #include "ash/ash_switches.h"
15 #include "ash/autoclick/autoclick_controller.h" 15 #include "ash/autoclick/autoclick_controller.h"
16 #include "ash/container_delegate.h"
16 #include "ash/desktop_background/desktop_background_controller.h" 17 #include "ash/desktop_background/desktop_background_controller.h"
17 #include "ash/desktop_background/desktop_background_view.h" 18 #include "ash/desktop_background/desktop_background_view.h"
18 #include "ash/desktop_background/user_wallpaper_delegate.h" 19 #include "ash/desktop_background/user_wallpaper_delegate.h"
19 #include "ash/display/cursor_window_controller.h" 20 #include "ash/display/cursor_window_controller.h"
20 #include "ash/display/display_configuration_controller.h" 21 #include "ash/display/display_configuration_controller.h"
21 #include "ash/display/display_manager.h" 22 #include "ash/display/display_manager.h"
22 #include "ash/display/event_transformation_handler.h" 23 #include "ash/display/event_transformation_handler.h"
23 #include "ash/display/mouse_cursor_event_filter.h" 24 #include "ash/display/mouse_cursor_event_filter.h"
24 #include "ash/display/screen_position_controller.h" 25 #include "ash/display/screen_position_controller.h"
25 #include "ash/display/window_tree_host_manager.h" 26 #include "ash/display/window_tree_host_manager.h"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 wm_globals_.reset(); 844 wm_globals_.reset();
844 845
845 // Depends on |focus_client_|, so must be destroyed before. 846 // Depends on |focus_client_|, so must be destroyed before.
846 window_tree_host_manager_->Shutdown(); 847 window_tree_host_manager_->Shutdown();
847 window_tree_host_manager_.reset(); 848 window_tree_host_manager_.reset();
848 focus_client_.reset(); 849 focus_client_.reset();
849 screen_position_controller_.reset(); 850 screen_position_controller_.reset();
850 accessibility_delegate_.reset(); 851 accessibility_delegate_.reset();
851 new_window_delegate_.reset(); 852 new_window_delegate_.reset();
852 media_delegate_.reset(); 853 media_delegate_.reset();
854 container_delegate_.reset();
853 pointer_watcher_delegate_.reset(); 855 pointer_watcher_delegate_.reset();
854 856
855 keyboard::KeyboardController::ResetInstance(nullptr); 857 keyboard::KeyboardController::ResetInstance(nullptr);
856 858
857 #if defined(OS_CHROMEOS) 859 #if defined(OS_CHROMEOS)
858 display_color_manager_.reset(); 860 display_color_manager_.reset();
859 if (display_change_observer_) 861 if (display_change_observer_)
860 display_configurator_->RemoveObserver(display_change_observer_.get()); 862 display_configurator_->RemoveObserver(display_change_observer_.get());
861 if (display_error_observer_) 863 if (display_error_observer_)
862 display_configurator_->RemoveObserver(display_error_observer_.get()); 864 display_configurator_->RemoveObserver(display_error_observer_.get());
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 1084
1083 // This controller needs to be set before SetupManagedWindowMode. 1085 // This controller needs to be set before SetupManagedWindowMode.
1084 desktop_background_controller_.reset( 1086 desktop_background_controller_.reset(
1085 new DesktopBackgroundController(blocking_pool_)); 1087 new DesktopBackgroundController(blocking_pool_));
1086 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate()); 1088 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
1087 1089
1088 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate()); 1090 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate());
1089 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate()); 1091 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate());
1090 new_window_delegate_.reset(delegate_->CreateNewWindowDelegate()); 1092 new_window_delegate_.reset(delegate_->CreateNewWindowDelegate());
1091 media_delegate_.reset(delegate_->CreateMediaDelegate()); 1093 media_delegate_.reset(delegate_->CreateMediaDelegate());
1094 container_delegate_ = delegate_->CreateContainerDelegate();
1092 pointer_watcher_delegate_ = delegate_->CreatePointerWatcherDelegate(); 1095 pointer_watcher_delegate_ = delegate_->CreatePointerWatcherDelegate();
1093 1096
1094 resize_shadow_controller_.reset(new ResizeShadowController()); 1097 resize_shadow_controller_.reset(new ResizeShadowController());
1095 shadow_controller_.reset( 1098 shadow_controller_.reset(
1096 new ::wm::ShadowController(activation_client_)); 1099 new ::wm::ShadowController(activation_client_));
1097 1100
1098 // Create system_tray_notifier_ before the delegate. 1101 // Create system_tray_notifier_ before the delegate.
1099 system_tray_notifier_.reset(new SystemTrayNotifier()); 1102 system_tray_notifier_.reset(new SystemTrayNotifier());
1100 1103
1101 // Initialize system_tray_delegate_ before initializing StatusAreaWidget. 1104 // Initialize system_tray_delegate_ before initializing StatusAreaWidget.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1264
1262 void Shell::OnWindowActivated( 1265 void Shell::OnWindowActivated(
1263 aura::client::ActivationChangeObserver::ActivationReason reason, 1266 aura::client::ActivationChangeObserver::ActivationReason reason,
1264 aura::Window* gained_active, 1267 aura::Window* gained_active,
1265 aura::Window* lost_active) { 1268 aura::Window* lost_active) {
1266 if (gained_active) 1269 if (gained_active)
1267 target_root_window_ = gained_active->GetRootWindow(); 1270 target_root_window_ = gained_active->GetRootWindow();
1268 } 1271 }
1269 1272
1270 } // namespace ash 1273 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698