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

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

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed file modes for test files 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/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 9261c7227d5f448a5f5083338c3b471e94275ff3..e7df069c18ee987aea95735addc1a72b52d13984 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -658,6 +658,10 @@ void Widget::SetAlwaysOnTop(bool on_top) {
native_widget_->SetAlwaysOnTop(on_top);
}
+bool Widget::IsAlwaysOnTop() const {
+ return native_widget_->IsAlwaysOnTop();
sky 2013/10/08 15:46:10 Can we make widget cache the value of SetAlwaysOnT
tmdiep 2013/10/09 02:15:04 In Patch 4 I've retrieved and cached the value fro
sky 2013/10/09 13:23:38 Yes. I mean cache the value from InitParams and Se
tmdiep 2013/10/10 02:35:08 I'm inclined to query IsAlwaysOnTop() from the nat
+}
+
void Widget::Maximize() {
native_widget_->Maximize();
}

Powered by Google App Engine
This is Rietveld 408576698