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. |
| 19 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, |
| 20 int, /* x-coordinate */ |
| 21 int, /* y-coordinate */ |
| 22 int /* modifiers */) |
| 23 // Inforoms the brower that a mouse button was pressed. |
| 24 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseButton, |
| 25 int, /* x-coordinate */ |
| 26 int, /* y-coordinate */ |
| 27 int /* modifiers */) |
18 | 28 |
19 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseEvent, | 29 |
20 int, /* msg */ | |
21 uintptr_t, /* message's wParam */ | |
22 intptr_t /* message's lParam */) | |
OLD | NEW |