summaryrefslogtreecommitdiffstats
path: root/chromium/ui/wm/core/shadow_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/wm/core/shadow_types.h')
-rw-r--r--chromium/ui/wm/core/shadow_types.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/chromium/ui/wm/core/shadow_types.h b/chromium/ui/wm/core/shadow_types.h
new file mode 100644
index 00000000000..1198a43b16c
--- /dev/null
+++ b/chromium/ui/wm/core/shadow_types.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_WM_CORE_SHADOW_TYPES_H_
+#define UI_WM_CORE_SHADOW_TYPES_H_
+
+#include "ui/aura/window.h"
+#include "ui/wm/wm_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace wm {
+
+// Different types of drop shadows that can be drawn under a window by the
+// shell. Used as a value for the kShadowTypeKey property.
+enum ShadowType {
+ // Starts at 0 due to the cast in GetShadowType().
+ SHADOW_TYPE_NONE = 0,
+ SHADOW_TYPE_RECTANGULAR,
+};
+
+WM_EXPORT void SetShadowType(aura::Window* window, ShadowType shadow_type);
+WM_EXPORT ShadowType GetShadowType(aura::Window* window);
+
+// A property key describing the drop shadow that should be displayed under the
+// window. If unset, no shadow is displayed.
+extern const aura::WindowProperty<ShadowType>* const kShadowTypeKey;
+
+} // namespace wm
+
+#endif // UI_WM_CORE_SHADOW_TYPES_H_