OLD | NEW |
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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "ui/events/event_constants.h" | 11 #include "ui/events/event_constants.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 #include "ui/metro_viewer/ime_types.h" | 13 #include "ui/metro_viewer/ime_types.h" |
14 | 14 |
15 #define IPC_MESSAGE_START MetroViewerMsgStart | 15 #define IPC_MESSAGE_START MetroViewerMsgStart |
16 | 16 |
17 IPC_ENUM_TRAITS(ui::EventType) | 17 IPC_ENUM_TRAITS(ui::EventType) |
18 IPC_ENUM_TRAITS(ui::EventFlags) | 18 IPC_ENUM_TRAITS(ui::EventFlags) |
19 | 19 |
20 // Contains the parameters sent for a mousebutton message. | 20 // Contains the parameters sent for a mousebutton message. |
21 IPC_STRUCT_BEGIN(MetroViewerHostMsg_MouseButtonParams) | 21 IPC_STRUCT_BEGIN(MetroViewerHostMsg_MouseButtonParams) |
22 | 22 |
23 IPC_STRUCT_MEMBER(int32, x) | 23 IPC_STRUCT_MEMBER(int32, x) |
24 IPC_STRUCT_MEMBER(int32, y) | 24 IPC_STRUCT_MEMBER(int32, y) |
25 IPC_STRUCT_MEMBER(int32, extra) | 25 IPC_STRUCT_MEMBER(int32, extra) |
26 IPC_STRUCT_MEMBER(ui::EventType, event_type) | 26 IPC_STRUCT_MEMBER(ui::EventType, event_type) |
27 IPC_STRUCT_MEMBER(uint32, flags) | 27 IPC_STRUCT_MEMBER(uint32, flags) |
28 IPC_STRUCT_MEMBER(ui::EventFlags, changed_button) | 28 IPC_STRUCT_MEMBER(ui::EventFlags, changed_button) |
| 29 IPC_STRUCT_MEMBER(bool, is_horizontal_wheel) |
29 | 30 |
30 IPC_STRUCT_END() | 31 IPC_STRUCT_END() |
31 | 32 |
32 // Messages sent from the viewer to the browser: | 33 // Messages sent from the viewer to the browser: |
33 | 34 |
34 // Inform the browser of the surface to target for compositing. | 35 // Inform the browser of the surface to target for compositing. |
35 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, | 36 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, |
36 gfx::NativeViewId /* target hwnd */) | 37 gfx::NativeViewId /* target hwnd */) |
37 // Informs the browser that the mouse moved. | 38 // Informs the browser that the mouse moved. |
38 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, | 39 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 IPC_STRUCT_TRAITS_MEMBER(right) | 215 IPC_STRUCT_TRAITS_MEMBER(right) |
215 IPC_STRUCT_TRAITS_MEMBER(bottom) | 216 IPC_STRUCT_TRAITS_MEMBER(bottom) |
216 IPC_STRUCT_TRAITS_END() | 217 IPC_STRUCT_TRAITS_END() |
217 | 218 |
218 // Requests the viewer to update the document context such as attached | 219 // Requests the viewer to update the document context such as attached |
219 // InputScopes and character bounds. | 220 // InputScopes and character bounds. |
220 IPC_MESSAGE_CONTROL2( | 221 IPC_MESSAGE_CONTROL2( |
221 MetroViewerHostMsg_ImeTextInputClientUpdated, | 222 MetroViewerHostMsg_ImeTextInputClientUpdated, |
222 std::vector<int32>, /* InputScope enums */ | 223 std::vector<int32>, /* InputScope enums */ |
223 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ | 224 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ |
OLD | NEW |