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

Unified Diff: ash/root_window_controller.cc

Issue 10795027: Move a window if the sceren bounds being set is in other display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adjust for win_aura Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 0ef08bc42a6582810d2f2f09f401a6693785e804..ef046bdf8b443d19c3bf49e57a0d1809940143d4 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -70,11 +70,9 @@ void MoveAllWindows(aura::RootWindow* src,
iter != children.end(); ++iter) {
aura::Window* window = *iter;
// Don't move modal screen.
- if ((id == internal::kShellWindowId_SystemModalContainer ||
- id == internal::kShellWindowId_LockSystemModalContainer) &&
- window->GetProperty(aura::client::kModalKey) == ui::MODAL_TYPE_NONE) {
+ if (internal::SystemModalContainerLayoutManager::IsModalScreen(window))
continue;
- }
+
// Update the restore bounds to make it relative to the display.
gfx::Rect restore_bounds;
if (internal::DisplayController::IsVirtualScreenCoordinatesEnabled())
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698