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 "content/common/page_message_enums.h" |
6 #include "ipc/ipc_message_macros.h" | 6 #include "ipc/ipc_message_macros.h" |
7 #include "ui/gfx/geometry/rect.h" | 7 #include "ui/gfx/geometry/rect.h" |
8 | 8 |
9 // IPC messages for page-level actions. | 9 // IPC messages for page-level actions. |
10 // Multiply-included message file, hence no include guard. | 10 // Multiply-included message file, hence no include guard. |
11 | 11 |
12 #undef IPC_MESSAGE_EXPORT | 12 #undef IPC_MESSAGE_EXPORT |
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
14 | 14 |
15 #define IPC_MESSAGE_START PageMsgStart | 15 #define IPC_MESSAGE_START PageMsgStart |
16 | 16 |
17 IPC_ENUM_TRAITS_MAX_VALUE( | 17 IPC_ENUM_TRAITS_MAX_VALUE( |
18 PageMsg_SetZoomLevel_Command, | 18 PageMsg_SetZoomLevel_Command, |
19 PageMsg_SetZoomLevel_Command::LAST) | 19 PageMsg_SetZoomLevel_Command::LAST) |
20 | 20 |
21 // Messages sent from the browser to the renderer. | 21 // Messages sent from the browser to the renderer. |
22 | 22 |
23 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, | 23 IPC_MESSAGE_ROUTED1(PageMsg_UpdateWindowScreenRect, |
24 gfx::Rect /* window_screen_rect */) | 24 gfx::Rect /* window_screen_rect */) |
25 | 25 |
26 IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel, | 26 IPC_MESSAGE_ROUTED2(PageMsg_SetZoomLevel, |
27 PageMsg_SetZoomLevel_Command /* command */, | 27 PageMsg_SetZoomLevel_Command /* command */, |
28 double /* zoom_level */) | 28 double /* zoom_level */) |
29 | 29 |
30 // Informs the renderer that the page was hidden. | |
31 IPC_MESSAGE_ROUTED0(PageMsg_WasHidden) | |
dcheng
2016/05/24 20:38:23
I know the existing messages are called ViewMsg_Wa
lfg
2016/05/24 23:33:50
I could change that to a single message that has a
| |
32 | |
33 // Informs the renderer the the page is not longer hidden. | |
kenrb
2016/05/24 20:25:18
nit: "the the" -> "that the", "not longer" -> "no
lfg
2016/05/24 23:33:50
Done.
| |
34 IPC_MESSAGE_ROUTED0(PageMsg_WasShown) | |
35 | |
30 // ----------------------------------------------------------------------------- | 36 // ----------------------------------------------------------------------------- |
31 // Messages sent from the renderer to the browser. | 37 // Messages sent from the renderer to the browser. |
32 | 38 |
33 // Adding a new message? Stick to the sort order above: first platform | 39 // Adding a new message? Stick to the sort order above: first platform |
34 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform | 40 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform |
35 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. | 41 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. |
OLD | NEW |