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 "content/public/common/screen_info.h" |
6 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
7 #include "ui/gfx/geometry/rect.h" | 8 #include "ui/gfx/geometry/rect.h" |
8 | 9 |
9 // IPC messages for page-level actions. | 10 // IPC messages for page-level actions. |
10 // Multiply-included message file, hence no include guard. | 11 // Multiply-included message file, hence no include guard. |
11 | 12 |
12 #undef IPC_MESSAGE_EXPORT | 13 #undef IPC_MESSAGE_EXPORT |
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
14 | 15 |
15 #define IPC_MESSAGE_START PageMsgStart | 16 #define IPC_MESSAGE_START PageMsgStart |
(...skipping 22 matching lines...) Expand all Loading... |
38 | 39 |
39 // Sent when the history for this page is altered from another process. The | 40 // Sent when the history for this page is altered from another process. The |
40 // history list should be reset to |history_length| length, and the offset | 41 // history list should be reset to |history_length| length, and the offset |
41 // should be reset to |history_offset|. | 42 // should be reset to |history_offset|. |
42 IPC_MESSAGE_ROUTED2(PageMsg_SetHistoryOffsetAndLength, | 43 IPC_MESSAGE_ROUTED2(PageMsg_SetHistoryOffsetAndLength, |
43 int /* history_offset */, | 44 int /* history_offset */, |
44 int /* history_length */) | 45 int /* history_length */) |
45 | 46 |
46 IPC_MESSAGE_ROUTED1(PageMsg_AudioStateChanged, bool /* is_audio_playing */) | 47 IPC_MESSAGE_ROUTED1(PageMsg_AudioStateChanged, bool /* is_audio_playing */) |
47 | 48 |
| 49 // Sent to OOPIF renderers when the main frame's ScreenInfo changes. |
| 50 IPC_MESSAGE_ROUTED1(PageMsg_UpdateScreenInfo, |
| 51 content::ScreenInfo /* screen_info */) |
| 52 |
48 // ----------------------------------------------------------------------------- | 53 // ----------------------------------------------------------------------------- |
49 // Messages sent from the renderer to the browser. | 54 // Messages sent from the renderer to the browser. |
50 | 55 |
51 // Adding a new message? Stick to the sort order above: first platform | 56 // Adding a new message? Stick to the sort order above: first platform |
52 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform | 57 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform |
53 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. | 58 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. |
OLD | NEW |