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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 // External popup menus. | 1439 // External popup menus. |
1440 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, | 1440 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, |
1441 int /* selected index, -1 means no selection */) | 1441 int /* selected index, -1 means no selection */) |
1442 #endif | 1442 #endif |
1443 | 1443 |
1444 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 1444 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
1445 // process to release the magnified image. | 1445 // process to release the magnified image. |
1446 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, | 1446 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, |
1447 TransportDIB::Handle /* DIB handle */) | 1447 TransportDIB::Handle /* DIB handle */) |
1448 | 1448 |
| 1449 // Notifies the renderer that a snapshot has been retrieved. |
| 1450 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 1451 int /* snapshot_id */, |
| 1452 gfx::Size /* size */, |
| 1453 std::vector<unsigned char> /* png */) |
| 1454 |
1449 // ----------------------------------------------------------------------------- | 1455 // ----------------------------------------------------------------------------- |
1450 // Messages sent from the renderer to the browser. | 1456 // Messages sent from the renderer to the browser. |
1451 | 1457 |
1452 // Sent by the renderer when it is creating a new window. The browser creates | 1458 // Sent by the renderer when it is creating a new window. The browser creates |
1453 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1459 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1454 // MSG_ROUTING_NONE, the view couldn't be created. | 1460 // MSG_ROUTING_NONE, the view couldn't be created. |
1455 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 1461 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
1456 ViewHostMsg_CreateWindow_Params, | 1462 ViewHostMsg_CreateWindow_Params, |
1457 int /* route_id */, | 1463 int /* route_id */, |
1458 int32 /* surface_id */, | 1464 int32 /* surface_id */, |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1944 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
1939 bool /* has_handlers */) | 1945 bool /* has_handlers */) |
1940 | 1946 |
1941 // A message from HTML-based UI. When (trusted) Javascript calls | 1947 // A message from HTML-based UI. When (trusted) Javascript calls |
1942 // send(message, args), this message is sent to the browser. | 1948 // send(message, args), this message is sent to the browser. |
1943 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1949 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
1944 GURL /* source_url */, | 1950 GURL /* source_url */, |
1945 std::string /* message */, | 1951 std::string /* message */, |
1946 base::ListValue /* args */) | 1952 base::ListValue /* args */) |
1947 | 1953 |
| 1954 // Requests a snapshot of the given window. |
| 1955 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot, |
| 1956 int /* snapshot_id */) |
| 1957 |
1948 // A renderer sends this to the browser process when it wants to create a ppapi | 1958 // A renderer sends this to the browser process when it wants to create a ppapi |
1949 // plugin. The browser will create the plugin process if necessary, and will | 1959 // plugin. The browser will create the plugin process if necessary, and will |
1950 // return a handle to the channel on success. | 1960 // return a handle to the channel on success. |
1951 // | 1961 // |
1952 // The plugin_child_id is the ChildProcessHost ID assigned in the browser | 1962 // The plugin_child_id is the ChildProcessHost ID assigned in the browser |
1953 // process. This ID is valid only in the context of the browser process and is | 1963 // process. This ID is valid only in the context of the browser process and is |
1954 // used to identify the proper process when the renderer notifies it that the | 1964 // used to identify the proper process when the renderer notifies it that the |
1955 // plugin is hung. | 1965 // plugin is hung. |
1956 // | 1966 // |
1957 // On error an empty string and null handles are returned. | 1967 // On error an empty string and null handles are returned. |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 int /* arb_robustness_status_code */) | 2451 int /* arb_robustness_status_code */) |
2442 | 2452 |
2443 #if defined(OS_WIN) | 2453 #if defined(OS_WIN) |
2444 // Request that the given font characters be loaded by the browser so it's | 2454 // Request that the given font characters be loaded by the browser so it's |
2445 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2455 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2446 // for details. | 2456 // for details. |
2447 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2457 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2448 LOGFONT /* font_data */, | 2458 LOGFONT /* font_data */, |
2449 string16 /* characters */) | 2459 string16 /* characters */) |
2450 #endif | 2460 #endif |
OLD | NEW |