OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1334 // Sends back to the browser the rendered "printed page" that was requested by | 1334 // Sends back to the browser the rendered "printed page" that was requested by |
1335 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in | 1335 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in |
1336 // this message is already valid in the browser process. | 1336 // this message is already valid in the browser process. |
1337 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, | 1337 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, |
1338 ViewHostMsg_DidPrintPage_Params /* page content */) | 1338 ViewHostMsg_DidPrintPage_Params /* page content */) |
1339 | 1339 |
1340 // The renderer wants to know the default print settings. | 1340 // The renderer wants to know the default print settings. |
1341 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, | 1341 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, |
1342 ViewMsg_Print_Params /* default_settings */) | 1342 ViewMsg_Print_Params /* default_settings */) |
1343 | 1343 |
1344 #if defined(OS_WIN) | 1344 #if defined(OS_WIN) || defined(OS_MACOSX) |
1345 // It's the renderer that controls the printing process when it is generated | 1345 // It's the renderer that controls the printing process when it is generated |
1346 // by javascript. This step is about showing UI to the user to select the | 1346 // by javascript. This step is about showing UI to the user to select the |
1347 // final print settings. The output parameter is the same as | 1347 // final print settings. The output parameter is the same as |
1348 // ViewMsg_PrintPages which is executed implicitly. | 1348 // ViewMsg_PrintPages which is executed implicitly. |
1349 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ScriptedPrint, | 1349 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ScriptedPrint, |
1350 ViewHostMsg_ScriptedPrint_Params, | 1350 ViewHostMsg_ScriptedPrint_Params, |
1351 ViewMsg_PrintPages_Params /* settings choosen by | 1351 ViewMsg_PrintPages_Params /* settings choosen by |
1352 the user*/) | 1352 the user*/) |
1353 #endif // defined(OS_WIN) | 1353 #endif // defined(OS_WIN) |
pink (ping after 24hrs)
2009/10/13 21:04:51
fix?
stuartmorgan
2009/10/13 22:07:43
Done.
| |
1354 | 1354 |
1355 // WebKit and JavaScript error messages to log to the console | 1355 // WebKit and JavaScript error messages to log to the console |
1356 // or debugger UI. | 1356 // or debugger UI. |
1357 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole, | 1357 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole, |
1358 std::wstring, /* msg */ | 1358 std::wstring, /* msg */ |
1359 int32, /* line number */ | 1359 int32, /* line number */ |
1360 std::wstring /* source id */) | 1360 std::wstring /* source id */) |
1361 | 1361 |
1362 // Stores new inspector settings in the profile. | 1362 // Stores new inspector settings in the profile. |
1363 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateInspectorSettings, | 1363 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateInspectorSettings, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1519 #if defined(OS_LINUX) | 1519 #if defined(OS_LINUX) |
1520 // Asks the browser create a temporary file for the renderer to fill | 1520 // Asks the browser create a temporary file for the renderer to fill |
1521 // in resulting NativeMetafile in printing. | 1521 // in resulting NativeMetafile in printing. |
1522 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting, | 1522 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting, |
1523 base::FileDescriptor /* temp file fd */, | 1523 base::FileDescriptor /* temp file fd */, |
1524 int /* fd in browser*/) | 1524 int /* fd in browser*/) |
1525 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten, | 1525 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten, |
1526 int /* fd in browser */) | 1526 int /* fd in browser */) |
1527 #endif | 1527 #endif |
1528 | 1528 |
1529 #if defined(OS_MACOSX) | |
1530 // Asks the browser create a block of shared memory for the renderer to pass | |
1531 // NativeMetafile data to the browser. | |
1532 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport, | |
1533 size_t /* buffer size */, | |
1534 base::SharedMemoryHandle /* browser handle */) | |
1535 #endif | |
1536 | |
1529 // Provide the browser process with information about the WebCore resource | 1537 // Provide the browser process with information about the WebCore resource |
1530 // cache. | 1538 // cache. |
1531 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, | 1539 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, |
1532 WebKit::WebCache::ResourceTypeStats) | 1540 WebKit::WebCache::ResourceTypeStats) |
1533 | 1541 |
1534 // Notify the browser that this render process can or can't be suddenly | 1542 // Notify the browser that this render process can or can't be suddenly |
1535 // terminated. | 1543 // terminated. |
1536 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1544 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
1537 bool /* enabled */) | 1545 bool /* enabled */) |
1538 | 1546 |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1912 int /* socket_id */, | 1920 int /* socket_id */, |
1913 std::vector<char> /* data */) | 1921 std::vector<char> /* data */) |
1914 | 1922 |
1915 // Request to close the Socket Stream. | 1923 // Request to close the Socket Stream. |
1916 // The browser will send ViewMsg_SocketStream_Closed back when the Socket | 1924 // The browser will send ViewMsg_SocketStream_Closed back when the Socket |
1917 // Stream is completely closed. | 1925 // Stream is completely closed. |
1918 IPC_MESSAGE_CONTROL1(ViewHostMsg_SocketStream_Close, | 1926 IPC_MESSAGE_CONTROL1(ViewHostMsg_SocketStream_Close, |
1919 int /* socket_id */) | 1927 int /* socket_id */) |
1920 | 1928 |
1921 IPC_END_MESSAGES(ViewHost) | 1929 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |