OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/common/page_message_enums.h" |
5 #include "ipc/ipc_message_macros.h" | 6 #include "ipc/ipc_message_macros.h" |
| 7 #include "ui/gfx/geometry/rect.h" |
6 | 8 |
7 // IPC messages for page-level actions. | 9 // IPC messages for page-level actions. |
8 // Multiply-included message file, hence no include guard. | 10 // Multiply-included message file, hence no include guard. |
9 | 11 |
10 #undef IPC_MESSAGE_EXPORT | 12 #undef IPC_MESSAGE_EXPORT |
11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
12 | 14 |
13 #define IPC_MESSAGE_START PageMsgStart | 15 #define IPC_MESSAGE_START PageMsgStart |
14 | 16 |
| 17 IPC_ENUM_TRAITS_MAX_VALUE( |
| 18 PageMsg_SetZoomLevel_Command, |
| 19 PageMsg_SetZoomLevel_Command::LAST); |
| 20 |
15 // Messages sent from the browser to the renderer. | 21 // Messages sent from the browser to the renderer. |
16 | 22 |
17 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, | 23 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, |
18 gfx::Rect /* window_screen_rect */) | 24 gfx::Rect /* window_screen_rect */) |
19 | 25 |
| 26 IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel, |
| 27 PageMsg_SetZoomLevel_Command /* command */, |
| 28 double /* zoom_level */) |
| 29 |
20 // ----------------------------------------------------------------------------- | 30 // ----------------------------------------------------------------------------- |
21 // Messages sent from the renderer to the browser. | 31 // Messages sent from the renderer to the browser. |
22 | 32 |
23 // Adding a new message? Stick to the sort order above: first platform | 33 // Adding a new message? Stick to the sort order above: first platform |
24 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform | 34 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform |
25 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. | 35 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. |
OLD | NEW |