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

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

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (delegating IsDocked to non… 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 bb1c9f0b92e901c16745733d4f7250ea6ca75641..124ce27814753f40984fe88c16ccea983bebe351 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -690,6 +690,12 @@ bool Widget::IsFullscreen() const {
return native_widget_->IsFullscreen();
}
+bool Widget::IsDocked() const {
+ if (!non_client_view_)
+ return false;
+ return non_client_view_->IsFrameViewDocked();
+}
+
void Widget::SetOpacity(unsigned char opacity) {
native_widget_->SetOpacity(opacity);
}

Powered by Google App Engine
This is Rietveld 408576698