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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 #include "ui/base/events/event_constants.h" | 9 #include "ui/base/events/event_constants.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
11 | 11 |
12 #define IPC_MESSAGE_START MetroViewerMsgStart | 12 #define IPC_MESSAGE_START MetroViewerMsgStart |
13 | 13 |
14 IPC_ENUM_TRAITS(ui::EventType) | 14 IPC_ENUM_TRAITS(ui::EventType) |
15 IPC_ENUM_TRAITS(ui::EventFlags) | 15 IPC_ENUM_TRAITS(ui::EventFlags) |
16 | 16 |
17 // Messages sent from the viewer to the browser. | 17 // Messages sent from the viewer to the browser: |
18 | 18 |
19 // Inform the browser of the surface to target for compositing. | 19 // Inform the browser of the surface to target for compositing. |
20 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, | 20 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, |
21 gfx::NativeViewId /* target hwnd */) | 21 gfx::NativeViewId /* target hwnd */) |
22 // Informs the browser that the mouse moved. | 22 // Informs the browser that the mouse moved. |
23 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, | 23 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, |
24 int32, /* x-coordinate */ | 24 int32, /* x-coordinate */ |
25 int32, /* y-coordinate */ | 25 int32, /* y-coordinate */ |
26 int32 /* flags */) | 26 int32 /* flags */) |
27 // Informs the brower that a mouse button was pressed. | 27 // Informs the brower that a mouse button was pressed. |
(...skipping 16 matching lines...) Expand all Loading... |
44 uint32, /* scan code */ | 44 uint32, /* scan code */ |
45 uint32 /* key state */); | 45 uint32 /* key state */); |
46 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_Character, | 46 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_Character, |
47 uint32, /* virtual key */ | 47 uint32, /* virtual key */ |
48 uint32, /* repeat count */ | 48 uint32, /* repeat count */ |
49 uint32, /* scan code */ | 49 uint32, /* scan code */ |
50 uint32 /* key state */); | 50 uint32 /* key state */); |
51 // Informs the browser that the visibiliy of the viewer has changed. | 51 // Informs the browser that the visibiliy of the viewer has changed. |
52 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_VisibilityChanged, | 52 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_VisibilityChanged, |
53 bool /* visible */); | 53 bool /* visible */); |
| 54 |
| 55 // Messages sent from the browser to the viewer: |
| 56 |
| 57 // Requests the viewer to change the pointer to a new cursor. |
| 58 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetCursor, |
| 59 int64 /* cursor */); |
OLD | NEW |