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.
5 // Multiply-included message file, hence no include guard here.
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"
22 #define IPC_MESSAGE_START LastIPCMsgStart
24 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventFlags,
26 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventType,
28 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetState,
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetType,
33 IPC_MESSAGE_CONTROL2(WaylandInput_InitializeXKB, // NOLINT(readability/fn_size)
34 base::SharedMemoryHandle /*fd*/,
37 IPC_MESSAGE_CONTROL2(WaylandInput_KeyNotify, // NOLINT(readability/fn_size)
38 ui::EventType /*type*/,
41 IPC_MESSAGE_CONTROL3(WaylandInput_VirtualKeyNotify, // NOLINT(readability/fn_size)
42 ui::EventType /*type*/,
44 uint32_t /*modifiers*/)
46 IPC_MESSAGE_CONTROL4(WaylandInput_KeyModifiers, // NOLINT(readability/fn_size)
47 uint32_t /*mods_depressed*/,
48 uint32_t /*mods_latched*/,
49 uint32_t /*mods_locked*/,
52 IPC_MESSAGE_CONTROL2(WaylandInput_MotionNotify, // NOLINT(readability/fn_size)
56 IPC_MESSAGE_CONTROL5(WaylandInput_ButtonNotify, // NOLINT(readability/fn_size)
58 ui::EventType /*type*/,
59 ui::EventFlags /*flags*/,
63 IPC_MESSAGE_CONTROL5(WaylandInput_TouchNotify, // NOLINT(readability/fn_size)
64 ui::EventType /*type*/,
68 uint32_t /*time_stamp*/)
70 IPC_MESSAGE_CONTROL4(WaylandInput_AxisNotify, // NOLINT(readability/fn_size)
76 IPC_MESSAGE_CONTROL3(WaylandInput_PointerEnter, // NOLINT(readability/fn_size)
81 IPC_MESSAGE_CONTROL3(WaylandInput_PointerLeave, // NOLINT(readability/fn_size)
86 IPC_MESSAGE_CONTROL2(WaylandInput_OutputSize, // NOLINT(readability/fn_size)
90 IPC_MESSAGE_CONTROL1(WaylandInput_CloseWidget, // NOLINT(readability/fn_size)
93 IPC_MESSAGE_CONTROL3(WaylandWindow_Resized, // NOLINT(readability/fn_size)
94 unsigned /* window handle */,
96 unsigned /* height */)
98 IPC_MESSAGE_CONTROL1(WaylandWindow_Unminimized, // NOLINT(readability/fn_size)
101 IPC_MESSAGE_CONTROL4(WaylandWindow_State, // NOLINT(readability/fn_size)
102 unsigned /* window handle */,
103 ui::WidgetState /*state*/,
107 IPC_MESSAGE_CONTROL5(WaylandWindow_Attributes, // NOLINT(readability/fn_size)
108 unsigned /* window handle */,
109 unsigned /* window parent */,
112 ui::WidgetType /* window type */)
114 IPC_MESSAGE_CONTROL2(WaylandWindow_Title, // NOLINT(readability/fn_size)
115 unsigned /* window handle */,
116 base::string16 /* window title */)
118 IPC_MESSAGE_CONTROL1(WaylandWindow_Cursor, // NOLINT(readability/fn_size)
119 int /* cursor type */)
121 IPC_MESSAGE_CONTROL0(WaylandWindow_ImeReset) // NOLINT(readability/fn_size)
123 IPC_MESSAGE_CONTROL1(WaylandWindow_ImeCaretBoundsChanged, // NOLINT(readability/
124 gfx::Rect /* ImeCaretBoundsChanged */) // fn_size)
126 IPC_MESSAGE_CONTROL0(WaylandWindow_ShowInputPanel) // NOLINT(readability/
129 IPC_MESSAGE_CONTROL0(WaylandWindow_HideInputPanel) // NOLINT(readability/
132 IPC_MESSAGE_CONTROL2(WaylandInput_Commit, // NOLINT(readability/fn_size)
136 IPC_MESSAGE_CONTROL3(WaylandInput_PreeditChanged, // NOLINT(readability/
137 unsigned, // fn_size)
138 std::string, std::string)
140 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditEnd) // NOLINT(readability/fn_size)
142 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditStart) // NOLINT(readability/fn_size)