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

Unified Diff: ash/common/wm/default_state.cc

Issue 2590123002: Prevent maximize/minimize/fullscreen-ize window in trusted pinned mode. (Closed)
Patch Set: Address comments Created 4 years 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
« no previous file with comments | « no previous file | ash/common/wm/window_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/default_state.cc
diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc
index d17253e6a9187f68018c7fd5e483d8015509fa50..146c61fa148d88d3b8de49e04b0bccac9cf283ad 100644
--- a/ash/common/wm/default_state.cc
+++ b/ash/common/wm/default_state.cc
@@ -167,6 +167,10 @@ void DefaultState::OnWMEvent(WindowState* window_state, const WMEvent* event) {
if (ProcessWorkspaceEvents(window_state, event))
return;
+ // Do not change the PINNED window state if this is not unpin event.
+ if (window_state->IsTrustedPinned() && event->type() != WM_EVENT_NORMAL)
+ return;
+
if (ProcessCompoundEvents(window_state, event))
return;
« no previous file with comments | « no previous file | ash/common/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698