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

Unified Diff: ash/accelerators/accelerator_commands.cc

Issue 2078883003: Handle UNPIN operation in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upload only diff. Created 4 years, 6 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: ash/accelerators/accelerator_commands.cc
diff --git a/ash/accelerators/accelerator_commands.cc b/ash/accelerators/accelerator_commands.cc
index 94cc0566860e41e0fe8d14d668d3347c1ff8f4f8..2a6c9845dec5e8ca29bace0d55428f8aff06bd25 100644
--- a/ash/accelerators/accelerator_commands.cc
+++ b/ash/accelerators/accelerator_commands.cc
@@ -107,5 +107,11 @@ void ResetInternalDisplayZoom() {
}
}
+void Unpin() {
+ wm::WindowState* window_state = wm::GetActiveWindowState();
oshima 2016/06/18 04:18:13 Didn't we have a way to get pinned window?
hidehiko 2016/06/18 05:38:16 No from here. We can add, but for consistency with
+ if (window_state->IsPinned())
+ window_state->Restore();
+}
+
} // namespace accelerators
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698