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

Unified Diff: views/widget/native_widget_aura.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
« ui/aura/window.cc ('K') | « ui/aura_shell/shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_aura.cc
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc
index a9c88e7adb53c7a9ed4b46ac55e922f7adda0ab3..05dc01c758bd753cceb9969ba86345c08a77db75 100644
--- a/views/widget/native_widget_aura.cc
+++ b/views/widget/native_widget_aura.cc
@@ -86,6 +86,8 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
if (params.type == Widget::InitParams::TYPE_CONTROL) {
window_->SetParent(params.GetParent());
} else {
+ if (params.keep_on_top)
+ SetAlwaysOnTop(true);
window_->SetParent(NULL);
gfx::NativeView parent = params.GetParent();
if (parent)
@@ -355,7 +357,9 @@ bool NativeWidgetAura::IsActive() const {
}
void NativeWidgetAura::SetAlwaysOnTop(bool on_top) {
- NOTIMPLEMENTED();
+ SetNativeWindowProperty(aura::Window::kPropAlwaysOnTop,
+ reinterpret_cast<void*>(on_top));
+ // TODO(xiyuan): Switch containers if window_ is added to desktop already.
}
void NativeWidgetAura::Maximize() {
« ui/aura/window.cc ('K') | « ui/aura_shell/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698