| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 856 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
| 857 // the browser has the option of sending a ViewMsg_CantFocus back to | 857 // the browser has the option of sending a ViewMsg_CantFocus back to |
| 858 // the renderer. | 858 // the renderer. |
| 859 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) | 859 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) |
| 860 | 860 |
| 861 // Tells the renderer to suppress any further modal dialogs until it receives a | 861 // Tells the renderer to suppress any further modal dialogs until it receives a |
| 862 // corresponding ViewMsg_SwapOut message. This ensures that no | 862 // corresponding ViewMsg_SwapOut message. This ensures that no |
| 863 // PageGroupLoadDeferrer is on the stack for SwapOut. | 863 // PageGroupLoadDeferrer is on the stack for SwapOut. |
| 864 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut) | 864 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut) |
| 865 | 865 |
| 866 // Instructs the renderer to swap out for a cross-site transition, including | |
| 867 // running the unload event handler. Expects a SwapOut_ACK message when | |
| 868 // finished. | |
| 869 IPC_MESSAGE_ROUTED0(ViewMsg_SwapOut) | |
| 870 | |
| 871 // Instructs the renderer to close the current page, including running the | 866 // Instructs the renderer to close the current page, including running the |
| 872 // onunload event handler. | 867 // onunload event handler. |
| 873 // | 868 // |
| 874 // Expects a ClosePage_ACK message when finished. | 869 // Expects a ClosePage_ACK message when finished. |
| 875 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage) | 870 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage) |
| 876 | 871 |
| 877 // Notifies the renderer about ui theme changes | 872 // Notifies the renderer about ui theme changes |
| 878 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) | 873 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) |
| 879 | 874 |
| 880 // Notifies the renderer that a paint is to be generated for the rectangle | 875 // Notifies the renderer that a paint is to be generated for the rectangle |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 // coordinates) for the string found. If |final_update| is false, it signals | 1211 // coordinates) for the string found. If |final_update| is false, it signals |
| 1217 // that this is not the last Find_Reply message - more will be sent as the | 1212 // that this is not the last Find_Reply message - more will be sent as the |
| 1218 // scoping effort continues. | 1213 // scoping effort continues. |
| 1219 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, | 1214 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, |
| 1220 int /* request_id */, | 1215 int /* request_id */, |
| 1221 int /* number of matches */, | 1216 int /* number of matches */, |
| 1222 gfx::Rect /* selection_rect */, | 1217 gfx::Rect /* selection_rect */, |
| 1223 int /* active_match_ordinal */, | 1218 int /* active_match_ordinal */, |
| 1224 bool /* final_update */) | 1219 bool /* final_update */) |
| 1225 | 1220 |
| 1226 // Indicates that the current renderer has swapped out, after a SwapOut | |
| 1227 // message. | |
| 1228 IPC_MESSAGE_ROUTED0(ViewHostMsg_SwapOut_ACK) | |
| 1229 | |
| 1230 // Indicates that the current page has been closed, after a ClosePage | 1221 // Indicates that the current page has been closed, after a ClosePage |
| 1231 // message. | 1222 // message. |
| 1232 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK) | 1223 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK) |
| 1233 | 1224 |
| 1234 // Notifies the browser that media has started/stopped playing. | 1225 // Notifies the browser that media has started/stopped playing. |
| 1235 IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayingNotification, | 1226 IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayingNotification, |
| 1236 int64 /* player_cookie, distinguishes instances */, | 1227 int64 /* player_cookie, distinguishes instances */, |
| 1237 bool /* has_video */, | 1228 bool /* has_video */, |
| 1238 bool /* has_audio */) | 1229 bool /* has_audio */) |
| 1239 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPausedNotification, | 1230 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPausedNotification, |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1969 // synchronously (see crbug.com/120597). This IPC message sends the character | 1960 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1970 // bounds after every composition change to always have correct bound info. | 1961 // bounds after every composition change to always have correct bound info. |
| 1971 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1962 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1972 gfx::Range /* composition range */, | 1963 gfx::Range /* composition range */, |
| 1973 std::vector<gfx::Rect> /* character bounds */) | 1964 std::vector<gfx::Rect> /* character bounds */) |
| 1974 #endif | 1965 #endif |
| 1975 | 1966 |
| 1976 // Adding a new message? Stick to the sort order above: first platform | 1967 // Adding a new message? Stick to the sort order above: first platform |
| 1977 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1968 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1978 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1969 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |