Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ui / wm / core / shadow_types.h
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_WM_CORE_SHADOW_TYPES_H_
6 #define UI_WM_CORE_SHADOW_TYPES_H_
7
8 #include "ui/aura/window.h"
9 #include "ui/wm/wm_export.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 namespace wm {
16
17 // Different types of drop shadows that can be drawn under a window by the
18 // shell.  Used as a value for the kShadowTypeKey property.
19 enum ShadowType {
20   // Starts at 0 due to the cast in GetShadowType().
21   SHADOW_TYPE_NONE = 0,
22   SHADOW_TYPE_RECTANGULAR,
23   SHADOW_TYPE_RECTANGULAR_ALWAYS_ACTIVE,
24 };
25
26 WM_EXPORT void SetShadowType(aura::Window* window, ShadowType shadow_type);
27 WM_EXPORT ShadowType GetShadowType(aura::Window* window);
28
29 // A property key describing the drop shadow that should be displayed under the
30 // window.  If unset, no shadow is displayed.
31 extern const aura::WindowProperty<ShadowType>* const kShadowTypeKey;
32
33 }  // namespace wm
34
35 #endif  // UI_WM_CORE_SHADOW_TYPES_H_