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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1151 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
1152 // the browser has the option of sending a ViewMsg_CantFocus back to | 1152 // the browser has the option of sending a ViewMsg_CantFocus back to |
1153 // the renderer. | 1153 // the renderer. |
1154 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) | 1154 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) |
1155 | 1155 |
1156 // Instructs the renderer to invoke the frame's shouldClose method, which | 1156 // Instructs the renderer to invoke the frame's shouldClose method, which |
1157 // runs the onbeforeunload event handler. Expects the result to be returned | 1157 // runs the onbeforeunload event handler. Expects the result to be returned |
1158 // via ViewHostMsg_ShouldClose. | 1158 // via ViewHostMsg_ShouldClose. |
1159 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) | 1159 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) |
1160 | 1160 |
| 1161 // Tells the renderer to suppress any further modal dialogs until it receives a |
| 1162 // corresponding ViewMsg_SwapOut message. This ensures that no |
| 1163 // PageGroupLoadDeferrer is on the stack for SwapOut. |
| 1164 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut) |
| 1165 |
1161 // Instructs the renderer to swap out for a cross-site transition, including | 1166 // Instructs the renderer to swap out for a cross-site transition, including |
1162 // running the unload event handler. Expects a SwapOut_ACK message when | 1167 // running the unload event handler. Expects a SwapOut_ACK message when |
1163 // finished. | 1168 // finished. |
1164 IPC_MESSAGE_ROUTED0(ViewMsg_SwapOut) | 1169 IPC_MESSAGE_ROUTED0(ViewMsg_SwapOut) |
1165 | 1170 |
1166 // Instructs the renderer to close the current page, including running the | 1171 // Instructs the renderer to close the current page, including running the |
1167 // onunload event handler. | 1172 // onunload event handler. |
1168 // | 1173 // |
1169 // Expects a ClosePage_ACK message when finished. | 1174 // Expects a ClosePage_ACK message when finished. |
1170 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage) | 1175 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage) |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 // synchronously (see crbug.com/120597). This IPC message sends the character | 2370 // synchronously (see crbug.com/120597). This IPC message sends the character |
2366 // bounds after every composition change to always have correct bound info. | 2371 // bounds after every composition change to always have correct bound info. |
2367 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2372 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2368 gfx::Range /* composition range */, | 2373 gfx::Range /* composition range */, |
2369 std::vector<gfx::Rect> /* character bounds */) | 2374 std::vector<gfx::Rect> /* character bounds */) |
2370 #endif | 2375 #endif |
2371 | 2376 |
2372 // Adding a new message? Stick to the sort order above: first platform | 2377 // Adding a new message? Stick to the sort order above: first platform |
2373 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2378 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2374 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2379 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |