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

Unified Diff: ui/aura_shell/shell.cc

Issue 8387043: [Aura] Support always-on-top top level window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: ui/aura_shell/shell.cc
diff --git a/ui/aura_shell/shell.cc b/ui/aura_shell/shell.cc
index b0fe26069fae32736f43cedcd1e3b94ca1decadb..03212af131f97e996ff8b575d169a296b90e84f1 100644
--- a/ui/aura_shell/shell.cc
+++ b/ui/aura_shell/shell.cc
@@ -163,7 +163,10 @@ void Shell::AddChildToDefaultParent(aura::Window* window) {
case Widget::InitParams::TYPE_CONTROL:
case Widget::InitParams::TYPE_BUBBLE:
case Widget::InitParams::TYPE_POPUP:
- parent = GetContainer(internal::kShellWindowId_DefaultContainer);
+ if (!!window->GetProperty(aura::Window::kPropAlwaysOnTop))
+ parent = GetContainer(internal::kShellWindowId_AlwaysOnTopContainer);
+ else
+ parent = GetContainer(internal::kShellWindowId_DefaultContainer);
break;
case Widget::InitParams::TYPE_MENU:
case Widget::InitParams::TYPE_TOOLTIP:
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698