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

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
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..1fe8d775e77355a767b061317d28c26ed45a3f3a 100644
--- a/ash/public/cpp/window_properties.h
+++ b/ash/public/cpp/window_properties.h
@@ -9,6 +9,7 @@
#include "ash/public/cpp/ash_public_export.h"
#include "ash/public/cpp/shelf_types.h"
+#include "ash/public/interfaces/window_pin_type.mojom.h"
sky 2017/04/04 17:04:56 forward declare enum?
Peng 2017/04/04 17:38:00 Done.
#include "ui/base/class_property.h"
namespace aura {
@@ -30,6 +31,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

Powered by Google App Engine
This is Rietveld 408576698