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

Unified Diff: ui/aura_shell/stacking_controller.cc

Issue 8638013: [cros Aura] Added modal container for screen lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 1 month 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 | « ui/aura_shell/shell_window_ids.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/stacking_controller.cc
diff --git a/ui/aura_shell/stacking_controller.cc b/ui/aura_shell/stacking_controller.cc
index ffe5cb4af7cb8101de55cd0accca44598d297604..b1595fda47db7f791b061992443a4004fb2cb088 100644
--- a/ui/aura_shell/stacking_controller.cc
+++ b/ui/aura_shell/stacking_controller.cc
@@ -23,7 +23,8 @@ aura::Window* GetContainer(int id) {
bool SupportsChildActivation(aura::Window* window) {
return window->id() == kShellWindowId_DefaultContainer ||
window->id() == kShellWindowId_AlwaysOnTopContainer ||
- window->id() == kShellWindowId_ModalContainer;
+ window->id() == kShellWindowId_ModalContainer ||
+ window->id() == kShellWindowId_LockModalContainer;
}
bool IsWindowModal(aura::Window* window) {
@@ -75,7 +76,13 @@ void StackingController::AddChildToDefaultParent(aura::Window* window) {
case aura::WINDOW_TYPE_NORMAL:
case aura::WINDOW_TYPE_POPUP:
if (IsWindowModal(window)) {
- parent = GetContainer(internal::kShellWindowId_ModalContainer);
+ aura::Window* lock_container =
+ GetContainer(internal::kShellWindowId_LockScreenContainer);
+ // Lock/login screen has its own modal container.
+ if (!lock_container->children().size())
Ben Goodger (Google) 2011/11/28 17:12:56 I realized there is a flaw here that will require
Nikita (slow) 2011/11/29 10:06:34 Done.
+ parent = GetContainer(internal::kShellWindowId_ModalContainer);
+ else
+ parent = GetContainer(internal::kShellWindowId_LockModalContainer);
break;
}
parent = always_on_top_controller_->GetContainer(window);
« no previous file with comments | « ui/aura_shell/shell_window_ids.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698