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

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

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: defaults test 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/wm/core/shadow_controller.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 8de25e83024734f2fbe7fcbf6528bff8ef9ec192..ef22af7adf394e4184149157a9fd2b4edab9ff5a 100644
--- a/ui/wm/core/shadow_types.h
+++ b/ui/wm/core/shadow_types.h
@@ -18,6 +18,9 @@ namespace wm {
// shell. Used as a value for the kShadowTypeKey property. The integer value of
// each entry is directly used for determining the size of the shadow.
enum class ShadowElevation {
+ // Indicates an elevation should be chosen based on the window. This is the
+ // default.
+ DEFAULT = -1,
NONE = 0,
SMALL = 6,
MEDIUM = 8,
@@ -25,12 +28,12 @@ enum class ShadowElevation {
};
WM_EXPORT void SetShadowElevation(aura::Window* window,
- ShadowElevation shadow_type);
-WM_EXPORT ShadowElevation GetShadowElevation(aura::Window* window);
+ ShadowElevation elevation);
// A property key describing the drop shadow that should be displayed under the
-// window. If unset, no shadow is displayed.
-extern const aura::WindowProperty<ShadowElevation>* const kShadowElevationKey;
+// window. A null value is interpreted as using the default.
+WM_EXPORT extern const aura::WindowProperty<ShadowElevation>* const
+ kShadowElevationKey;
} // namespace wm
« no previous file with comments | « ui/wm/core/shadow_controller.cc ('k') | ui/wm/core/shadow_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698