Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: ui/metro_viewer/metro_viewer_messages.h

Issue 1695783002: IPC::ParamTraits for ui::Event (towards ui::Events over mojo IPC) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicate MUS_COMMON_EXPORT in header and impl Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, no include guard. 5 // Multiply-included message file, no include guard.
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 #include "ui/events/event_constants.h" 12 #include "ui/events/event_constants.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/metro_viewer/ime_types.h" 14 #include "ui/metro_viewer/ime_types.h"
15 15
16 #define IPC_MESSAGE_START MetroViewerMsgStart 16 #define IPC_MESSAGE_START MetroViewerMsgStart
17 17
18 IPC_ENUM_TRAITS(ui::EventType)
19 IPC_ENUM_TRAITS(ui::EventFlags)
20
21 // Contains the parameters sent for a mousebutton message.
22 IPC_STRUCT_BEGIN(MetroViewerHostMsg_MouseButtonParams)
23
24 IPC_STRUCT_MEMBER(int32_t, x)
25 IPC_STRUCT_MEMBER(int32_t, y)
26 IPC_STRUCT_MEMBER(int32_t, extra)
27 IPC_STRUCT_MEMBER(ui::EventType, event_type)
28 IPC_STRUCT_MEMBER(uint32_t, flags)
29 IPC_STRUCT_MEMBER(ui::EventFlags, changed_button)
30 IPC_STRUCT_MEMBER(bool, is_horizontal_wheel)
31
32 IPC_STRUCT_END()
33
34 // Messages sent from the viewer to the browser: 18 // Messages sent from the viewer to the browser:
35 19
36 // Inform the browser of the surface to target for compositing. 20 // Inform the browser of the surface to target for compositing.
37 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SetTargetSurface, 21 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SetTargetSurface,
38 gfx::NativeViewId /* target hwnd */, 22 gfx::NativeViewId /* target hwnd */,
39 float /* device scale */) 23 float /* device scale */)
40 // Informs the browser that the mouse moved. 24 // Informs the browser that the mouse moved.
41 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, 25 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved,
42 int32_t, /* x-coordinate */ 26 int32_t, /* x-coordinate */
43 int32_t, /* y-coordinate */ 27 int32_t, /* y-coordinate */
44 int32_t /* flags */) 28 int32_t /* flags */)
45 // Informs the brower that a mouse button was pressed.
46 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_MouseButton,
47 MetroViewerHostMsg_MouseButtonParams)
48 // Informs the browser that a key was pressed. 29 // Informs the browser that a key was pressed.
49 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_KeyDown, 30 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_KeyDown,
50 uint32_t, /* virtual key */ 31 uint32_t, /* virtual key */
51 uint32_t, /* repeat count */ 32 uint32_t, /* repeat count */
52 uint32_t, /* scan code */ 33 uint32_t, /* scan code */
53 uint32_t /* key state */) 34 uint32_t /* key state */)
54 // Informs the browser that a key was released. 35 // Informs the browser that a key was released.
55 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_KeyUp, 36 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_KeyUp,
56 uint32_t, /* virtual key */ 37 uint32_t, /* virtual key */
57 uint32_t, /* repeat count */ 38 uint32_t, /* repeat count */
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 IPC_STRUCT_TRAITS_MEMBER(right) 200 IPC_STRUCT_TRAITS_MEMBER(right)
220 IPC_STRUCT_TRAITS_MEMBER(bottom) 201 IPC_STRUCT_TRAITS_MEMBER(bottom)
221 IPC_STRUCT_TRAITS_END() 202 IPC_STRUCT_TRAITS_END()
222 203
223 // Requests the viewer to update the document context such as attached 204 // Requests the viewer to update the document context such as attached
224 // InputScopes and character bounds. 205 // InputScopes and character bounds.
225 IPC_MESSAGE_CONTROL2( 206 IPC_MESSAGE_CONTROL2(
226 MetroViewerHostMsg_ImeTextInputClientUpdated, 207 MetroViewerHostMsg_ImeTextInputClientUpdated,
227 std::vector<int32_t>, /* InputScope enums */ 208 std::vector<int32_t>, /* InputScope enums */
228 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ 209 std::vector<metro_viewer::CharacterBounds>) /* character bounds */
OLDNEW
« components/mus/common/event_param_traits_unittest.cc ('K') | « ui/gfx/ipc/gfx_param_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698