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

Unified Diff: components/exo/shell_surface.cc

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: WIP Created 3 years, 9 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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 7c034052e72dd8a5f67298093964bd4a31dbf8d6..44abd08b0eef708d4e57e7d6dbb2770d7bffd0d1 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -493,13 +493,13 @@ void ShellSurface::SetPinned(bool pinned, bool trusted) {
// state doesn't change.
ScopedConfigure scoped_configure(this, true);
if (pinned) {
- ash::wm::PinWindow(widget_->GetNativeWindow(), trusted);
+ widget_->Pin(trusted);
} else {
// At the moment, we cannot just unpin the window state, due to ash
// implementation. Instead, we call Restore() to unpin, if it is Pinned
// state. In this implementation, we may loose the previous state,
// if the previous state is fullscreen, etc.
- if (ash::wm::GetWindowState(widget_->GetNativeWindow())->IsPinned())
+ if (widget_->IsPinned())
widget_->Restore();
}
}

Powered by Google App Engine
This is Rietveld 408576698