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. |
(...skipping 12 matching lines...) Expand all Loading... |
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 IPC_MESSAGE_ROUTED1(PageMsg_SetDeviceScaleFactor, | 30 IPC_MESSAGE_ROUTED1(PageMsg_SetDeviceScaleFactor, |
31 double /* device_scale_factor */) | 31 double /* device_scale_factor */) |
32 | 32 |
| 33 IPC_MESSAGE_ROUTED1(PageMsg_SetPageScaleFactor, |
| 34 double /* page_scale_factor */) |
| 35 |
33 // Informs the renderer that the page was hidden. | 36 // Informs the renderer that the page was hidden. |
34 IPC_MESSAGE_ROUTED0(PageMsg_WasHidden) | 37 IPC_MESSAGE_ROUTED0(PageMsg_WasHidden) |
35 | 38 |
36 // Informs the renderer that the page is no longer hidden. | 39 // Informs the renderer that the page is no longer hidden. |
37 IPC_MESSAGE_ROUTED0(PageMsg_WasShown) | 40 IPC_MESSAGE_ROUTED0(PageMsg_WasShown) |
38 | 41 |
39 // Sent when the history for this page is altered from another process. The | 42 // 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 | 43 // history list should be reset to |history_length| length, and the offset |
41 // should be reset to |history_offset|. | 44 // should be reset to |history_offset|. |
42 IPC_MESSAGE_ROUTED2(PageMsg_SetHistoryOffsetAndLength, | 45 IPC_MESSAGE_ROUTED2(PageMsg_SetHistoryOffsetAndLength, |
43 int /* history_offset */, | 46 int /* history_offset */, |
44 int /* history_length */) | 47 int /* history_length */) |
45 | 48 |
46 IPC_MESSAGE_ROUTED1(PageMsg_AudioStateChanged, bool /* is_audio_playing */) | 49 IPC_MESSAGE_ROUTED1(PageMsg_AudioStateChanged, bool /* is_audio_playing */) |
47 | 50 |
48 // ----------------------------------------------------------------------------- | 51 // ----------------------------------------------------------------------------- |
49 // Messages sent from the renderer to the browser. | 52 // Messages sent from the renderer to the browser. |
50 | 53 |
51 // Adding a new message? Stick to the sort order above: first platform | 54 // Adding a new message? Stick to the sort order above: first platform |
52 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform | 55 // independent PageMsg, then ifdefs for platform specific PageMsg, then platform |
53 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. | 56 // independent PageHostMsg, then ifdefs for platform specific PageHostMsg. |
OLD | NEW |