- add sources.
[platform/framework/web/crosswalk.git] / src / ozone / wayland / global.h
1 // Copyright 2013 Intel Corporation. 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 OZONE_WAYLAND_GLOBAL_H_
6 #define OZONE_WAYLAND_GLOBAL_H_
7
8 namespace ozonewayland {
9
10 #define MOD_SHIFT_MASK  0x01
11 #define MOD_ALT_MASK  0x02
12 #define MOD_CONTROL_MASK  0x04
13
14 enum WindowLocation {
15   WINDOW_INTERIOR = 0,
16   WINDOW_RESIZING_TOP = 1,
17   WINDOW_RESIZING_BOTTOM = 2,
18   WINDOW_RESIZING_LEFT = 4,
19   WINDOW_RESIZING_TOP_LEFT = 5,
20   WINDOW_RESIZING_BOTTOM_LEFT = 6,
21   WINDOW_RESIZING_RIGHT = 8,
22   WINDOW_RESIZING_TOP_RIGHT = 9,
23   WINDOW_RESIZING_BOTTOM_RIGHT = 10,
24   WINDOW_RESIZING_MASK = 15,
25   WINDOW_EXTERIOR = 16,
26   WINDOW_TITLEBAR = 17,
27   WINDOW_CLIENT_AREA = 18,
28 };
29
30 // Constants to identify the type of resize.
31 enum BoundsChangeType {
32   kBoundsChange_None = 0,
33   kBoundsChange_Repositions,
34   kBoundsChange_Resizes,
35 };
36
37 }  // namespace ozonewayland
38
39 #endif  // OZONE_WAYLAND_DISPLAY_H_
40