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