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

Unified Diff: ash/common/wm/window_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 | « ash/common/wm/window_state.h ('k') | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_state.cc
diff --git a/ash/common/wm/window_state.cc b/ash/common/wm/window_state.cc
index 638ee72d132c31c737d3e9057e7e495caa016005..13c4bff394b9a3644a3e7f405c13b02a4e2aab40 100644
--- a/ash/common/wm/window_state.cc
+++ b/ash/common/wm/window_state.cc
@@ -87,6 +87,10 @@ bool WindowState::IsPinned() const {
GetStateType() == WINDOW_STATE_TYPE_TRUSTED_PINNED;
}
+bool WindowState::IsTrustedPinned() const {
+ return GetStateType() == WINDOW_STATE_TYPE_TRUSTED_PINNED;
+}
+
bool WindowState::IsNormalStateType() const {
return GetStateType() == WINDOW_STATE_TYPE_NORMAL ||
GetStateType() == WINDOW_STATE_TYPE_DEFAULT;
« no previous file with comments | « ash/common/wm/window_state.h ('k') | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698