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

Unified Diff: ui/views/widget/widget.h

Issue 290553002: Refactor menu dependency on aura/wm SetShadowType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for sky Created 6 years, 7 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/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 9ade039d4a3c0e07813d7c0fceffde2d39a091c0..cd09391c0fd90c4726cbe20288e9e06af21ed8e0 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -180,6 +180,13 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
WIDGET_OWNS_NATIVE_WIDGET
};
+ enum ShadowType {
+ DEFAULT_SHADOW, // Use default shadow setting.
sky 2014/05/20 13:30:42 SHADOW_TYPE_DEFAULT, SHADOW_TYPE_NONE, SHADOW_TYPE
+ NO_SHADOW, // Don't draw any shadow.
+ DROP_SHADOW, // Draw a drop shadow that emphasizes Z-order
+ // relationship to other windows.
+ };
+
InitParams();
explicit InitParams(Type type);
~InitParams();
@@ -200,7 +207,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
bool visible_on_all_workspaces;
Ownership ownership;
bool mirror_origin_in_rtl;
- bool has_dropshadow;
+ ShadowType shadow_type;
// Specifies that the system default caption and icon should not be
// rendered, and that the client area should be equivalent to the window
// area. Only used on some platforms (Windows and Linux).
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698