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/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
11 #define IPC_MESSAGE_START MetroViewerMsgStart | 11 #define IPC_MESSAGE_START MetroViewerMsgStart |
12 | 12 |
13 // Messages sent from the viewer to the browser. | 13 // Messages sent from the viewer to the browser. |
14 | 14 |
15 // Inform the browser of the surface to target for compositing. | 15 // Inform the browser of the surface to target for compositing. |
16 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, | 16 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, |
17 gfx::NativeViewId /* target hwnd */) | 17 gfx::NativeViewId /* target hwnd */) |
18 // Informs the browser that the mouse moved. | 18 // Informs the browser that the mouse moved. |
19 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, | 19 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, |
20 int, /* x-coordinate */ | 20 int32, /* x-coordinate */ |
21 int, /* y-coordinate */ | 21 int32, /* y-coordinate */ |
22 int /* modifiers */) | 22 int32 /* modifiers */) |
23 // Inforoms the brower that a mouse button was pressed. | 23 // Inforoms the brower that a mouse button was pressed. |
24 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseButton, | 24 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseButton, |
25 int, /* x-coordinate */ | 25 int32, /* x-coordinate */ |
26 int, /* y-coordinate */ | 26 int32, /* y-coordinate */ |
27 int /* modifiers */) | 27 int32 /* modifiers */) |
28 | 28 // Informs the browser that a key was pressed. |
29 | 29 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_KeyDown, |
| 30 uint32, /* virtual key */ |
| 31 uint32, /* repeat count */ |
| 32 uint32 /* scan code*/); |
| 33 // Informs the browser that a key was released. |
| 34 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_KeyUp, |
| 35 uint32, /* virtual key */ |
| 36 uint32, /* repeat count */ |
| 37 uint32 /* scan code*/); |
OLD | NEW |