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

Unified Diff: ash/wm/window_util.cc

Issue 2285633002: Add WM_EVENT_TRUSTED_PIN and WINDOW_STATE_TYPE_TRUSTED_PINNED to Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 4 years, 4 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/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 9cf50d32120034195e23230d032b26d5a36a0c0d..d81105b4c86ee76f3bb32fbffc995b4c59ff6bc8 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -62,8 +62,8 @@ bool IsWindowUserPositionable(aura::Window* window) {
return GetWindowState(window)->IsUserPositionable();
}
-void PinWindow(aura::Window* window) {
- wm::WMEvent event(wm::WM_EVENT_PIN);
+void PinWindow(aura::Window* window, bool trusted) {
+ wm::WMEvent event(trusted ? wm::WM_EVENT_TRUSTED_PIN : wm::WM_EVENT_PIN);
wm::GetWindowState(window)->OnWMEvent(&event);
}

Powered by Google App Engine
This is Rietveld 408576698