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

Side by Side Diff: ash/shell.cc

Issue 2086143002: Convert TrayEventFilter to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak Created 4 years, 6 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
(...skipping 10 matching lines...) Expand all
21 #include "ash/common/shelf/shelf_item_delegate.h" 21 #include "ash/common/shelf/shelf_item_delegate.h"
22 #include "ash/common/shelf/shelf_item_delegate_manager.h" 22 #include "ash/common/shelf/shelf_item_delegate_manager.h"
23 #include "ash/common/shelf/shelf_model.h" 23 #include "ash/common/shelf/shelf_model.h"
24 #include "ash/common/shell_window_ids.h" 24 #include "ash/common/shell_window_ids.h"
25 #include "ash/common/system/tray/system_tray_delegate.h" 25 #include "ash/common/system/tray/system_tray_delegate.h"
26 #include "ash/common/wm/mru_window_tracker.h" 26 #include "ash/common/wm/mru_window_tracker.h"
27 #include "ash/common/wm/root_window_finder.h" 27 #include "ash/common/wm/root_window_finder.h"
28 #include "ash/common/wm/window_positioner.h" 28 #include "ash/common/wm/window_positioner.h"
29 #include "ash/common/wm_shell.h" 29 #include "ash/common/wm_shell.h"
30 #include "ash/common/wm_shell_common.h" 30 #include "ash/common/wm_shell_common.h"
31 #include "ash/container_delegate.h"
32 #include "ash/desktop_background/desktop_background_controller.h" 31 #include "ash/desktop_background/desktop_background_controller.h"
33 #include "ash/desktop_background/desktop_background_view.h" 32 #include "ash/desktop_background/desktop_background_view.h"
34 #include "ash/desktop_background/user_wallpaper_delegate.h" 33 #include "ash/desktop_background/user_wallpaper_delegate.h"
35 #include "ash/display/cursor_window_controller.h" 34 #include "ash/display/cursor_window_controller.h"
36 #include "ash/display/display_configuration_controller.h" 35 #include "ash/display/display_configuration_controller.h"
37 #include "ash/display/display_manager.h" 36 #include "ash/display/display_manager.h"
38 #include "ash/display/event_transformation_handler.h" 37 #include "ash/display/event_transformation_handler.h"
39 #include "ash/display/mouse_cursor_event_filter.h" 38 #include "ash/display/mouse_cursor_event_filter.h"
40 #include "ash/display/screen_position_controller.h" 39 #include "ash/display/screen_position_controller.h"
41 #include "ash/display/window_tree_host_manager.h" 40 #include "ash/display/window_tree_host_manager.h"
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 793
795 wm_shell_->PrepareForShutdown(); 794 wm_shell_->PrepareForShutdown();
796 // Depends on |focus_client_|, so must be destroyed before. 795 // Depends on |focus_client_|, so must be destroyed before.
797 window_tree_host_manager_->Shutdown(); 796 window_tree_host_manager_->Shutdown();
798 window_tree_host_manager_.reset(); 797 window_tree_host_manager_.reset();
799 focus_client_.reset(); 798 focus_client_.reset();
800 screen_position_controller_.reset(); 799 screen_position_controller_.reset();
801 accessibility_delegate_.reset(); 800 accessibility_delegate_.reset();
802 new_window_delegate_.reset(); 801 new_window_delegate_.reset();
803 media_delegate_.reset(); 802 media_delegate_.reset();
804 container_delegate_.reset();
805 pointer_watcher_delegate_.reset(); 803 pointer_watcher_delegate_.reset();
806 804
807 keyboard::KeyboardController::ResetInstance(nullptr); 805 keyboard::KeyboardController::ResetInstance(nullptr);
808 806
809 #if defined(OS_CHROMEOS) 807 #if defined(OS_CHROMEOS)
810 display_color_manager_.reset(); 808 display_color_manager_.reset();
811 if (display_change_observer_) 809 if (display_change_observer_)
812 display_configurator_->RemoveObserver(display_change_observer_.get()); 810 display_configurator_->RemoveObserver(display_change_observer_.get());
813 if (display_error_observer_) 811 if (display_error_observer_)
814 display_configurator_->RemoveObserver(display_error_observer_.get()); 812 display_configurator_->RemoveObserver(display_error_observer_.get());
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 1042
1045 // This controller needs to be set before SetupManagedWindowMode. 1043 // This controller needs to be set before SetupManagedWindowMode.
1046 desktop_background_controller_.reset( 1044 desktop_background_controller_.reset(
1047 new DesktopBackgroundController(blocking_pool_)); 1045 new DesktopBackgroundController(blocking_pool_));
1048 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate()); 1046 user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
1049 1047
1050 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate()); 1048 session_state_delegate_.reset(delegate_->CreateSessionStateDelegate());
1051 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate()); 1049 accessibility_delegate_.reset(delegate_->CreateAccessibilityDelegate());
1052 new_window_delegate_.reset(delegate_->CreateNewWindowDelegate()); 1050 new_window_delegate_.reset(delegate_->CreateNewWindowDelegate());
1053 media_delegate_.reset(delegate_->CreateMediaDelegate()); 1051 media_delegate_.reset(delegate_->CreateMediaDelegate());
1054 container_delegate_ = delegate_->CreateContainerDelegate();
1055 pointer_watcher_delegate_ = delegate_->CreatePointerWatcherDelegate(); 1052 pointer_watcher_delegate_ = delegate_->CreatePointerWatcherDelegate();
1056 1053
1057 resize_shadow_controller_.reset(new ResizeShadowController()); 1054 resize_shadow_controller_.reset(new ResizeShadowController());
1058 shadow_controller_.reset( 1055 shadow_controller_.reset(
1059 new ::wm::ShadowController(activation_client_)); 1056 new ::wm::ShadowController(activation_client_));
1060 1057
1061 // Create system_tray_notifier_ before the delegate. 1058 // Create system_tray_notifier_ before the delegate.
1062 system_tray_notifier_.reset(new SystemTrayNotifier()); 1059 system_tray_notifier_.reset(new SystemTrayNotifier());
1063 1060
1064 SystemTrayDelegate* system_tray_delegate = 1061 SystemTrayDelegate* system_tray_delegate =
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 1213
1217 void Shell::OnWindowActivated( 1214 void Shell::OnWindowActivated(
1218 aura::client::ActivationChangeObserver::ActivationReason reason, 1215 aura::client::ActivationChangeObserver::ActivationReason reason,
1219 aura::Window* gained_active, 1216 aura::Window* gained_active,
1220 aura::Window* lost_active) { 1217 aura::Window* lost_active) {
1221 if (gained_active) 1218 if (gained_active)
1222 target_root_window_ = gained_active->GetRootWindow(); 1219 target_root_window_ = gained_active->GetRootWindow();
1223 } 1220 }
1224 1221
1225 } // namespace ash 1222 } // 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