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

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

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)
Patch Set: one more mechanical change Created 3 years, 11 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/wm/core/shadow.h » ('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 aa89478dd50604acafdad03b842dbdbdafbaaa52..2c5ba165dd74f95145584a07675811d383f3064d 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "base/optional.h"
#include "base/scoped_observer.h"
#include "build/build_config.h"
#include "ui/base/ui_base_types.h"
@@ -59,6 +60,10 @@ class ThemeProvider;
class Window;
} // namespace ui
+namespace wm {
+enum class ShadowElevation;
+}
+
namespace views {
class DesktopWindowTreeHost;
@@ -232,6 +237,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
Ownership ownership;
bool mirror_origin_in_rtl;
ShadowType shadow_type;
+ // A hint about the size of the shadow if the type is SHADOW_TYPE_DROP. May
+ // be ignored on some platforms. No value indicates no preference.
+ base::Optional<wm::ShadowElevation> shadow_elevation;
// 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/wm/core/shadow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698