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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 7 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/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index c3d56b2f87072f8be06cf4fdb3300cc429fa9ebf..bc628fc9660f07126793e58875fc42df0ba46747 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -645,6 +645,10 @@ void DesktopNativeWidgetAura::SetAlwaysOnTop(bool always_on_top) {
desktop_root_window_host_->SetAlwaysOnTop(always_on_top);
}
+bool DesktopNativeWidgetAura::IsAlwaysOnTop() const {
+ return window_ && desktop_root_window_host_->IsAlwaysOnTop();
+}
+
void DesktopNativeWidgetAura::Maximize() {
if (window_)
desktop_root_window_host_->Maximize();
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | ui/views/widget/desktop_aura/desktop_root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698