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( // NOLINT(readability/fn_size)
42 WaylandInput_VirtualKeyNotify,
43 ui::EventType /*type*/,
45 uint32_t /*modifiers*/)
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*/,
53 IPC_MESSAGE_CONTROL2(WaylandInput_MotionNotify, // NOLINT(readability/fn_size)
57 IPC_MESSAGE_CONTROL5(WaylandInput_ButtonNotify, // NOLINT(readability/fn_size)
59 ui::EventType /*type*/,
60 ui::EventFlags /*flags*/,
64 IPC_MESSAGE_CONTROL5(WaylandInput_TouchNotify, // NOLINT(readability/fn_size)
65 ui::EventType /*type*/,
69 uint32_t /*time_stamp*/)
71 IPC_MESSAGE_CONTROL4(WaylandInput_AxisNotify, // NOLINT(readability/fn_size)
77 IPC_MESSAGE_CONTROL3(WaylandInput_PointerEnter, // NOLINT(readability/fn_size)
82 IPC_MESSAGE_CONTROL3(WaylandInput_PointerLeave, // NOLINT(readability/fn_size)
87 IPC_MESSAGE_CONTROL2(WaylandInput_OutputSize, // NOLINT(readability/fn_size)
91 IPC_MESSAGE_CONTROL1(WaylandInput_CloseWidget, // NOLINT(readability/fn_size)
94 IPC_MESSAGE_CONTROL3(WaylandWindow_Resized, // NOLINT(readability/fn_size)
95 unsigned /* window handle */,
97 unsigned /* height */)
99 IPC_MESSAGE_CONTROL1(WaylandWindow_Unminimized, // NOLINT(readability/fn_size)
102 IPC_MESSAGE_CONTROL1(WaylandWindow_DeActivated, // NOLINT(readability/fn_size)
105 IPC_MESSAGE_CONTROL1(WaylandWindow_Activated, // NOLINT(readability/fn_size)
108 IPC_MESSAGE_CONTROL2(WaylandWindow_State, // NOLINT(readability/fn_size)
109 unsigned /* window handle */,
110 ui::WidgetState /*state*/)
112 IPC_MESSAGE_CONTROL5(WaylandWindow_Create, // NOLINT(readability/fn_size)
113 unsigned /* window handle */,
114 unsigned /* window parent */,
117 ui::WidgetType /* window type */)
119 IPC_MESSAGE_CONTROL2(WaylandWindow_Title, // NOLINT(readability/fn_size)
120 unsigned /* window handle */,
121 base::string16 /* window title */)
123 IPC_MESSAGE_CONTROL1(WaylandWindow_Cursor, // NOLINT(readability/fn_size)
124 int /* cursor type */)
126 IPC_MESSAGE_CONTROL0(WaylandWindow_ImeReset) // NOLINT(readability/fn_size)
128 IPC_MESSAGE_CONTROL1(WaylandWindow_ImeCaretBoundsChanged, // NOLINT(readability/
129 gfx::Rect /* ImeCaretBoundsChanged */) // fn_size)
131 IPC_MESSAGE_CONTROL0(WaylandWindow_ShowInputPanel) // NOLINT(readability/
134 IPC_MESSAGE_CONTROL0(WaylandWindow_HideInputPanel) // NOLINT(readability/
137 IPC_MESSAGE_CONTROL2(WaylandInput_Commit, // NOLINT(readability/fn_size)
141 IPC_MESSAGE_CONTROL3(WaylandInput_PreeditChanged, // NOLINT(readability/
142 unsigned, // fn_size)
143 std::string, std::string)
145 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditEnd) // NOLINT(readability/fn_size)
147 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditStart) // NOLINT(readability/fn_size)