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

Unified Diff: ash/wm/system_modal_container_layout_manager.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/wm/system_modal_container_layout_manager.h ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index c6975d97de782d33c28041689d59ad0a81819192..283c9df9409f9a08d9227e0117c230a3f4ce3962 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -153,6 +153,14 @@ bool SystemModalContainerLayoutManager::CanWindowReceiveEvents(
return wm::GetActivatableWindow(window) == modal_window();
}
+bool SystemModalContainerLayoutManager::IsModalScreen(
+ aura::Window* window) {
+ int id = window->parent()->id();
+ return (id == internal::kShellWindowId_SystemModalContainer ||
+ id == internal::kShellWindowId_LockSystemModalContainer) &&
+ window->GetProperty(aura::client::kModalKey) == ui::MODAL_TYPE_NONE;
+}
+
////////////////////////////////////////////////////////////////////////////////
// SystemModalContainerLayoutManager, private:
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.h ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698