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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1191 | 1191 |
1192 // Activate/deactivate the RenderView (i.e., set its controls' tint | 1192 // Activate/deactivate the RenderView (i.e., set its controls' tint |
1193 // accordingly, etc.). | 1193 // accordingly, etc.). |
1194 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 1194 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
1195 bool /* active */) | 1195 bool /* active */) |
1196 | 1196 |
1197 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. | 1197 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
1198 // Sent when the worker has started. | 1198 // Sent when the worker has started. |
1199 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) | 1199 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
1200 | 1200 |
1201 // The response to ViewHostMsg_AsyncOpenFile. | 1201 // The response to ViewHostMsg_AsyncOpenPepperFile. |
1202 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 1202 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenPepperFile_ACK, |
1203 base::PlatformFileError /* error_code */, | 1203 base::PlatformFileError /* error_code */, |
1204 IPC::PlatformFileForTransit /* file descriptor */, | 1204 IPC::PlatformFileForTransit /* file descriptor */, |
1205 int /* message_id */) | 1205 int /* message_id */) |
1206 | 1206 |
1207 // Tells the renderer that the network state has changed and that | 1207 // Tells the renderer that the network state has changed and that |
1208 // window.navigator.onLine should be updated for all WebViews. | 1208 // window.navigator.onLine should be updated for all WebViews. |
1209 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1209 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
1210 bool /* online */) | 1210 bool /* online */) |
1211 | 1211 |
1212 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1212 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1885 // A renderer sends this to the browser process when it wants to | 1885 // A renderer sends this to the browser process when it wants to |
1886 // create a ppapi broker. The browser will create the broker process | 1886 // create a ppapi broker. The browser will create the broker process |
1887 // if necessary, and will return a handle to the channel on success. | 1887 // if necessary, and will return a handle to the channel on success. |
1888 // On error an empty string is returned. | 1888 // On error an empty string is returned. |
1889 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1889 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1890 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1890 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
1891 int /* routing_id */, | 1891 int /* routing_id */, |
1892 int /* request_id */, | 1892 int /* request_id */, |
1893 base::FilePath /* path */) | 1893 base::FilePath /* path */) |
1894 | 1894 |
1895 // Opens a Pepper file asynchronously. The response returns a file descriptor | |
1896 // and an error code from base/platform_file.h. | |
1897 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenPepperFile, | |
1898 base::FilePath /* file path */, | |
1899 int /* pp_open_flags */, | |
1900 int /* message_id */) | |
1901 | |
jam
2013/07/30 16:07:12
nit: extra line
tommycli
2013/07/30 17:52:41
Done.
| |
1902 | |
1895 // A renderer sends this to the browser process when it wants to access a PPAPI | 1903 // A renderer sends this to the browser process when it wants to access a PPAPI |
1896 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called | 1904 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called |
1897 // for every connection. | 1905 // for every connection. |
1898 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. | 1906 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
1899 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, | 1907 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
1900 int /* request_id */, | 1908 int /* request_id */, |
1901 GURL /* document_url */, | 1909 GURL /* document_url */, |
1902 base::FilePath /* plugin_path */) | 1910 base::FilePath /* plugin_path */) |
1903 | 1911 |
1904 #if defined(USE_X11) | 1912 #if defined(USE_X11) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2065 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, | 2073 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, |
2066 uint32 /* output_surface_id */, | 2074 uint32 /* output_surface_id */, |
2067 cc::CompositorFrame /* frame */) | 2075 cc::CompositorFrame /* frame */) |
2068 | 2076 |
2069 // Sent by the compositor when input scroll events are dropped due to bounds | 2077 // Sent by the compositor when input scroll events are dropped due to bounds |
2070 // restricions on the root scroll offset. | 2078 // restricions on the root scroll offset. |
2071 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, | 2079 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, |
2072 gfx::Vector2dF /* accumulated_overscroll */, | 2080 gfx::Vector2dF /* accumulated_overscroll */, |
2073 gfx::Vector2dF /* current_fling_velocity */) | 2081 gfx::Vector2dF /* current_fling_velocity */) |
2074 | 2082 |
2075 // Opens a file asynchronously. The response returns a file descriptor | |
2076 // and an error code from base/platform_file.h. | |
2077 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, | |
2078 base::FilePath /* file path */, | |
2079 int /* flags */, | |
2080 int /* message_id */) | |
2081 | |
2082 // Reply to a snapshot request containing whether snapshotting succeeded and the | 2083 // Reply to a snapshot request containing whether snapshotting succeeded and the |
2083 // SkBitmap if it succeeded. | 2084 // SkBitmap if it succeeded. |
2084 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, | 2085 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, |
2085 bool, /* success */ | 2086 bool, /* success */ |
2086 SkBitmap /* bitmap */) | 2087 SkBitmap /* bitmap */) |
2087 | 2088 |
2088 //--------------------------------------------------------------------------- | 2089 //--------------------------------------------------------------------------- |
2089 // Request for cryptographic operation messages: | 2090 // Request for cryptographic operation messages: |
2090 // These are messages from the renderer to the browser to perform a | 2091 // These are messages from the renderer to the browser to perform a |
2091 // cryptographic operation. | 2092 // cryptographic operation. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2345 // synchronously (see crbug.com/120597). This IPC message sends the character | 2346 // synchronously (see crbug.com/120597). This IPC message sends the character |
2346 // bounds after every composition change to always have correct bound info. | 2347 // bounds after every composition change to always have correct bound info. |
2347 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2348 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2348 ui::Range /* composition range */, | 2349 ui::Range /* composition range */, |
2349 std::vector<gfx::Rect> /* character bounds */) | 2350 std::vector<gfx::Rect> /* character bounds */) |
2350 #endif | 2351 #endif |
2351 | 2352 |
2352 // Adding a new message? Stick to the sort order above: first platform | 2353 // Adding a new message? Stick to the sort order above: first platform |
2353 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2354 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2354 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2355 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |