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

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
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | ui/wm/core/shadow_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..48aec227a06d57623175e670b0c42eb246214c5f 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 |value| is a valid element of ShadowElevation elements.
+WM_EXPORT bool IsValidShadowElevation(int64_t value);
+
// 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
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | ui/wm/core/shadow_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698