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/strings/string16.h"
11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_message_utils.h"
13 #include "ipc/ipc_param_traits.h"
14 #include "ipc/param_traits_macros.h"
15 #include "ozone/ui/events/window_constants.h"
16 #include "ui/events/event_constants.h"
17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/ipc/gfx_param_traits.h"
21 #define IPC_MESSAGE_START LastIPCMsgStart
23 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventFlags,
25 IPC_ENUM_TRAITS_MAX_VALUE(ui::EventType,
27 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetState,
29 IPC_ENUM_TRAITS_MAX_VALUE(ui::WidgetType,
32 IPC_MESSAGE_CONTROL2(WaylandInput_MotionNotify, // NOLINT(readability/fn_size)
36 IPC_MESSAGE_CONTROL5(WaylandInput_ButtonNotify, // NOLINT(readability/fn_size)
38 ui::EventType /*type*/,
39 ui::EventFlags /*flags*/,
43 IPC_MESSAGE_CONTROL5(WaylandInput_TouchNotify, // NOLINT(readability/fn_size)
44 ui::EventType /*type*/,
48 uint32_t /*time_stamp*/)
50 IPC_MESSAGE_CONTROL4(WaylandInput_AxisNotify, // NOLINT(readability/fn_size)
56 IPC_MESSAGE_CONTROL3(WaylandInput_PointerEnter, // NOLINT(readability/fn_size)
61 IPC_MESSAGE_CONTROL3(WaylandInput_PointerLeave, // NOLINT(readability/fn_size)
66 IPC_MESSAGE_CONTROL3(WaylandInput_KeyNotify, // NOLINT(readability/fn_size)
67 ui::EventType /*type*/,
69 unsigned /*modifiers*/)
71 IPC_MESSAGE_CONTROL2(WaylandInput_OutputSize, // NOLINT(readability/fn_size)
75 IPC_MESSAGE_CONTROL1(WaylandInput_CloseWidget, // NOLINT(readability/fn_size)
78 IPC_MESSAGE_CONTROL3(WaylandWindow_Resized, // NOLINT(readability/fn_size)
79 unsigned /* window handle */,
81 unsigned /* height */)
83 IPC_MESSAGE_CONTROL1(WaylandWindow_Unminimized, // NOLINT(readability/fn_size)
86 IPC_MESSAGE_CONTROL4(WaylandWindow_State, // NOLINT(readability/fn_size)
87 unsigned /* window handle */,
88 ui::WidgetState /*state*/,
92 IPC_MESSAGE_CONTROL5(WaylandWindow_Attributes, // NOLINT(readability/fn_size)
93 unsigned /* window handle */,
94 unsigned /* window parent */,
97 ui::WidgetType /* window type */)
99 IPC_MESSAGE_CONTROL2(WaylandWindow_Title, // NOLINT(readability/fn_size)
100 unsigned /* window handle */,
101 base::string16 /* window title */)
103 IPC_MESSAGE_CONTROL1(WaylandWindow_Cursor, // NOLINT(readability/fn_size)
104 int /* cursor type */)
106 IPC_MESSAGE_CONTROL0(WaylandWindow_ImeReset) // NOLINT(readability/fn_size)
108 IPC_MESSAGE_CONTROL1(WaylandWindow_ImeCaretBoundsChanged, // NOLINT(readability/
109 gfx::Rect /* ImeCaretBoundsChanged */) // fn_size)
111 IPC_MESSAGE_CONTROL0(WaylandWindow_ShowInputPanel) // NOLINT(readability/
114 IPC_MESSAGE_CONTROL0(WaylandWindow_HideInputPanel) // NOLINT(readability/
117 IPC_MESSAGE_CONTROL2(WaylandInput_Commit, // NOLINT(readability/fn_size)
121 IPC_MESSAGE_CONTROL3(WaylandInput_PreeditChanged, // NOLINT(readability/
122 unsigned, // fn_size)
123 std::string, std::string)
125 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditEnd) // NOLINT(readability/fn_size)
127 IPC_MESSAGE_CONTROL0(WaylandInput_PreeditStart) // NOLINT(readability/fn_size)