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

Unified Diff: ash/public/cpp/window_properties.h

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues. Created 3 years, 8 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
« no previous file with comments | « ash/public/cpp/window_pin_type.cc ('k') | ash/public/cpp/window_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/cpp/window_properties.h
diff --git a/ash/public/cpp/window_properties.h b/ash/public/cpp/window_properties.h
index 7187ae70f1b10da93b84e297a0ee059be56f1aa3..5b1bc6c6876690a7cb15363612f70bac63c869ec 100644
--- a/ash/public/cpp/window_properties.h
+++ b/ash/public/cpp/window_properties.h
@@ -18,6 +18,10 @@ using WindowProperty = ui::ClassProperty<T>;
namespace ash {
+namespace mojom {
+enum class WindowPinType;
+}
+
// Shell-specific window property keys for use by ash and its clients.
// Alphabetical sort.
@@ -30,6 +34,14 @@ ASH_PUBLIC_EXPORT extern const aura::WindowProperty<bool>* const
ASH_PUBLIC_EXPORT extern const aura::WindowProperty<int32_t>* const
kShelfItemTypeKey;
+// A property key to store ash::WindowPinType for a window.
+// When setting this property to PINNED or TRUSTED_PINNED, the window manager
+// will try to fullscreen the window and pin it on the top of the screen. If the
+// window manager failed to do it, the property will be restored to NONE. When
+// setting this property to NONE, the window manager will restore the window.
+ASH_PUBLIC_EXPORT extern const aura::WindowProperty<
+ ash::mojom::WindowPinType>* const kWindowPinTypeKey;
+
// Alphabetical sort.
} // namespace ash
« no previous file with comments | « ash/public/cpp/window_pin_type.cc ('k') | ash/public/cpp/window_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698