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

Side by Side Diff: ash/root_window_controller.cc

Issue 2523723002: Update display::Display::kInvalidDisplayID constant. (Closed)
Patch Set: Fix includes. Created 4 years 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/mus/property_util.cc ('k') | ash/root_window_settings.cc » ('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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/aura/aura_layout_manager_adapter.h" 10 #include "ash/aura/aura_layout_manager_adapter.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "ui/aura/client/aura_constants.h" 62 #include "ui/aura/client/aura_constants.h"
63 #include "ui/aura/client/drag_drop_client.h" 63 #include "ui/aura/client/drag_drop_client.h"
64 #include "ui/aura/client/screen_position_client.h" 64 #include "ui/aura/client/screen_position_client.h"
65 #include "ui/aura/window.h" 65 #include "ui/aura/window.h"
66 #include "ui/aura/window_event_dispatcher.h" 66 #include "ui/aura/window_event_dispatcher.h"
67 #include "ui/aura/window_observer.h" 67 #include "ui/aura/window_observer.h"
68 #include "ui/aura/window_tracker.h" 68 #include "ui/aura/window_tracker.h"
69 #include "ui/display/display.h" 69 #include "ui/display/display.h"
70 #include "ui/display/manager/display_manager.h" 70 #include "ui/display/manager/display_manager.h"
71 #include "ui/display/screen.h" 71 #include "ui/display/screen.h"
72 #include "ui/display/types/display_constants.h"
72 #include "ui/keyboard/keyboard_controller.h" 73 #include "ui/keyboard/keyboard_controller.h"
73 #include "ui/keyboard/keyboard_util.h" 74 #include "ui/keyboard/keyboard_util.h"
74 #include "ui/views/view_model.h" 75 #include "ui/views/view_model.h"
75 #include "ui/views/view_model_utils.h" 76 #include "ui/views/view_model_utils.h"
76 #include "ui/wm/core/capture_controller.h" 77 #include "ui/wm/core/capture_controller.h"
77 #include "ui/wm/core/visibility_controller.h" 78 #include "ui/wm/core/visibility_controller.h"
78 #include "ui/wm/core/window_util.h" 79 #include "ui/wm/core/window_util.h"
79 #include "ui/wm/public/tooltip_client.h" 80 #include "ui/wm/public/tooltip_client.h"
80 #include "ui/wm/public/window_types.h" 81 #include "ui/wm/public/window_types.h"
81 82
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 touch_exploration_manager_.reset(); 205 touch_exploration_manager_.reset();
205 #endif 206 #endif
206 207
207 wm_root_window_controller_->ResetRootForNewWindowsIfNecessary(); 208 wm_root_window_controller_->ResetRootForNewWindowsIfNecessary();
208 209
209 CloseChildWindows(); 210 CloseChildWindows();
210 aura::Window* root_window = GetRootWindow(); 211 aura::Window* root_window = GetRootWindow();
211 GetRootWindowSettings(root_window)->controller = NULL; 212 GetRootWindowSettings(root_window)->controller = NULL;
212 // Forget with the display ID so that display lookup 213 // Forget with the display ID so that display lookup
213 // ends up with invalid display. 214 // ends up with invalid display.
214 GetRootWindowSettings(root_window)->display_id = 215 GetRootWindowSettings(root_window)->display_id = display::kInvalidDisplayId;
215 display::Display::kInvalidDisplayID;
216 ash_host_->PrepareForShutdown(); 216 ash_host_->PrepareForShutdown();
217 217
218 system_wallpaper_.reset(); 218 system_wallpaper_.reset();
219 aura::client::SetScreenPositionClient(root_window, NULL); 219 aura::client::SetScreenPositionClient(root_window, NULL);
220 } 220 }
221 221
222 bool RootWindowController::CanWindowReceiveEvents(aura::Window* window) { 222 bool RootWindowController::CanWindowReceiveEvents(aura::Window* window) {
223 if (GetRootWindow() != window->GetRootWindow()) 223 if (GetRootWindow() != window->GetRootWindow())
224 return false; 224 return false;
225 225
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 EnableTouchHudProjection(); 568 EnableTouchHudProjection();
569 else 569 else
570 DisableTouchHudProjection(); 570 DisableTouchHudProjection();
571 } 571 }
572 572
573 RootWindowController* GetRootWindowController(const aura::Window* root_window) { 573 RootWindowController* GetRootWindowController(const aura::Window* root_window) {
574 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; 574 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr;
575 } 575 }
576 576
577 } // namespace ash 577 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/property_util.cc ('k') | ash/root_window_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698