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

Unified Diff: ui/wm/core/shadow_types.h

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: sky comments Created 3 years, 10 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: ui/wm/core/shadow_types.h
diff --git a/ui/wm/core/shadow_types.h b/ui/wm/core/shadow_types.h
index ef22af7adf394e4184149157a9fd2b4edab9ff5a..2eac5e9bb580c9912ba2d8830978b7a18fb536db 100644
--- a/ui/wm/core/shadow_types.h
+++ b/ui/wm/core/shadow_types.h
@@ -30,6 +30,9 @@ enum class ShadowElevation {
WM_EXPORT void SetShadowElevation(aura::Window* window,
ShadowElevation elevation);
+// Returns true if |i| is a valid element of ShadowElevation elements.
msw 2017/02/23 22:35:12 ditto optional nit: |type| or |value|
Elliot Glaysher 2017/02/23 22:57:35 Done.
+WM_EXPORT bool IsValidShadowElevation(int64_t i);
+
// A property key describing the drop shadow that should be displayed under the
// window. A null value is interpreted as using the default.
WM_EXPORT extern const aura::WindowProperty<ShadowElevation>* const

Powered by Google App Engine
This is Rietveld 408576698