Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / public / messages.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 // Multiply-included message file, hence no include guard here.
6
7 #include <string>
8
9 #include "base/basictypes.h"
10 #include "base/memory/shared_memory.h"
11 #include "base/strings/string16.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "ipc/ipc_message_utils.h"
14 #include "ipc/ipc_param_traits.h"
15 #include "ipc/param_traits_macros.h"
16 #include "ozone/ui/events/window_constants.h"
17 #include "ui/events/event_constants.h"
18 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/ipc/gfx_param_traits.h"
20
21
22 #define IPC_MESSAGE_START LastIPCMsgStart
23
24 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventFlags,
25                           ui::EF_ALTGR_DOWN)
26 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventType,
27                           ui::ET_LAST)
28 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetState,
29                           ui::DESTROYED)
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetType,
31                           ui::POPUP)
32
33 IPC_MESSAGE_CONTROL2(WaylandInput_InitializeXKB,  // NOLINT(readability/fn_size)
34                      base::SharedMemoryHandle /*fd*/,
35                      uint32_t /*size*/)
36
37 IPC_MESSAGE_CONTROL2(WaylandInput_KeyNotify,  // NOLINT(readability/fn_size)
38                      ui::EventType /*type*/,
39                      unsigned /*code*/)
40
41 IPC_MESSAGE_CONTROL3(  // NOLINT(readability/fn_size)
42     WaylandInput_VirtualKeyNotify,
43     ui::EventType /*type*/,
44     uint32_t /*key*/,
45     uint32_t /*modifiers*/)
46
47 IPC_MESSAGE_CONTROL4(WaylandInput_KeyModifiers,  // NOLINT(readability/fn_size)
48                      uint32_t /*mods_depressed*/,
49                      uint32_t /*mods_latched*/,
50                      uint32_t /*mods_locked*/,
51                      uint32_t /*group*/)
52
53 IPC_MESSAGE_CONTROL2(WaylandInput_MotionNotify,  // NOLINT(readability/fn_size)
54                      float /*x*/,
55                      float /*y*/)
56
57 IPC_MESSAGE_CONTROL5(WaylandInput_ButtonNotify,  // NOLINT(readability/fn_size)
58                      unsigned /*handle*/,
59                      ui::EventType /*type*/,
60                      ui::EventFlags /*flags*/,
61                      float /*x*/,
62                      float /*y*/)
63
64 IPC_MESSAGE_CONTROL5(WaylandInput_TouchNotify,  // NOLINT(readability/fn_size)
65                      ui::EventType /*type*/,
66                      float /*x*/,
67                      float /*y*/,
68                      int32_t /*touch_id*/,
69                      uint32_t /*time_stamp*/)
70
71 IPC_MESSAGE_CONTROL4(WaylandInput_AxisNotify,  // NOLINT(readability/fn_size)
72                      float /*x*/,
73                      float /*y*/,
74                      int /*x_offset*/,
75                      int /*y_offset*/)
76
77 IPC_MESSAGE_CONTROL3(WaylandInput_PointerEnter,  // NOLINT(readability/fn_size)
78                      unsigned /*handle*/,
79                      float /*x*/,
80                      float /*y*/)
81
82 IPC_MESSAGE_CONTROL3(WaylandInput_PointerLeave,  // NOLINT(readability/fn_size)
83                      unsigned /*handle*/,
84                      float /*x*/,
85                      float /*y*/)
86
87 IPC_MESSAGE_CONTROL2(WaylandInput_OutputSize,  // NOLINT(readability/fn_size)
88                      unsigned /*width*/,
89                      unsigned /*height*/)
90
91 IPC_MESSAGE_CONTROL1(WaylandInput_CloseWidget,  // NOLINT(readability/fn_size)
92                      unsigned /*handle*/)
93
94 IPC_MESSAGE_CONTROL3(WaylandWindow_Resized,  // NOLINT(readability/fn_size)
95                      unsigned /* window handle */,
96                      unsigned /* width */,
97                      unsigned /* height */)
98
99 IPC_MESSAGE_CONTROL1(WaylandWindow_Unminimized,  // NOLINT(readability/fn_size)
100                      unsigned /*handle*/)
101
102 IPC_MESSAGE_CONTROL1(WaylandWindow_DeActivated,  // NOLINT(readability/fn_size)
103                      unsigned /*handle*/)
104
105 IPC_MESSAGE_CONTROL1(WaylandWindow_Activated,  // NOLINT(readability/fn_size)
106                      unsigned /*handle*/)
107
108 IPC_MESSAGE_CONTROL2(WaylandWindow_State,  // NOLINT(readability/fn_size)
109                      unsigned /* window handle */,
110                      ui::WidgetState /*state*/)
111
112 IPC_MESSAGE_CONTROL5(WaylandWindow_Create,  // NOLINT(readability/fn_size)
113                      unsigned /* window handle */,
114                      unsigned /* window parent */,
115                      unsigned /* x */,
116                      unsigned /* y */,
117                      ui::WidgetType /* window type */)
118
119 IPC_MESSAGE_CONTROL2(WaylandWindow_Title,  // NOLINT(readability/fn_size)
120                      unsigned /* window handle */,
121                      base::string16 /* window title */)
122
123 IPC_MESSAGE_CONTROL1(WaylandWindow_Cursor,  // NOLINT(readability/fn_size)
124                      int /* cursor type */)
125
126 IPC_MESSAGE_CONTROL0(WaylandWindow_ImeReset)  // NOLINT(readability/fn_size)
127
128 IPC_MESSAGE_CONTROL1(WaylandWindow_ImeCaretBoundsChanged, // NOLINT(readability/
129                      gfx::Rect /* ImeCaretBoundsChanged */)  //      fn_size)
130
131 IPC_MESSAGE_CONTROL0(WaylandWindow_ShowInputPanel)  // NOLINT(readability/
132                                                    //         fn_size)
133
134 IPC_MESSAGE_CONTROL0(WaylandWindow_HideInputPanel)  // NOLINT(readability/
135                                                    //         fn_size)
136
137 IPC_MESSAGE_CONTROL2(WaylandInput_Commit,  // NOLINT(readability/fn_size)
138                      unsigned,
139                      std::string)
140
141 IPC_MESSAGE_CONTROL3(WaylandInput_PreeditChanged, // NOLINT(readability/
142                      unsigned,                    //        fn_size)
143                      std::string, std::string)
144
145 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditEnd)  // NOLINT(readability/fn_size)
146
147 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditStart)  // NOLINT(readability/fn_size)