| 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_AsyncOpenFile. |
| 1202 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 1202 IPC_MESSAGE_CONTROL3(ViewMsg_AsyncOpenFile_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 |
| 1213 // Tells the renderer that the channel to the broker has been created. | 1213 // Tells the renderer that the channel to the broker has been created. |
| 1214 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated, | 1214 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated, |
| 1215 int /* request_id */, | 1215 int /* request_id */, |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 cc::CompositorFrame /* frame */) | 2067 cc::CompositorFrame /* frame */) |
| 2068 | 2068 |
| 2069 // Sent by the compositor when input scroll events are dropped due to bounds | 2069 // Sent by the compositor when input scroll events are dropped due to bounds |
| 2070 // restricions on the root scroll offset. | 2070 // restricions on the root scroll offset. |
| 2071 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, | 2071 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, |
| 2072 gfx::Vector2dF /* accumulated_overscroll */, | 2072 gfx::Vector2dF /* accumulated_overscroll */, |
| 2073 gfx::Vector2dF /* current_fling_velocity */) | 2073 gfx::Vector2dF /* current_fling_velocity */) |
| 2074 | 2074 |
| 2075 // Opens a file asynchronously. The response returns a file descriptor | 2075 // Opens a file asynchronously. The response returns a file descriptor |
| 2076 // and an error code from base/platform_file.h. | 2076 // and an error code from base/platform_file.h. |
| 2077 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, | 2077 IPC_MESSAGE_CONTROL3(ViewHostMsg_AsyncOpenFile, |
| 2078 base::FilePath /* file path */, | 2078 base::FilePath /* file path */, |
| 2079 int /* flags */, | 2079 int /* flags */, |
| 2080 int /* message_id */) | 2080 int /* message_id */) |
| 2081 | 2081 |
| 2082 // Reply to a snapshot request containing whether snapshotting succeeded and the | 2082 // Reply to a snapshot request containing whether snapshotting succeeded and the |
| 2083 // SkBitmap if it succeeded. | 2083 // SkBitmap if it succeeded. |
| 2084 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, | 2084 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, |
| 2085 bool, /* success */ | 2085 bool, /* success */ |
| 2086 SkBitmap /* bitmap */) | 2086 SkBitmap /* bitmap */) |
| 2087 | 2087 |
| 2088 //--------------------------------------------------------------------------- | 2088 //--------------------------------------------------------------------------- |
| 2089 // Request for cryptographic operation messages: | 2089 // Request for cryptographic operation messages: |
| 2090 // These are messages from the renderer to the browser to perform a | 2090 // These are messages from the renderer to the browser to perform a |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 // synchronously (see crbug.com/120597). This IPC message sends the character | 2345 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2346 // bounds after every composition change to always have correct bound info. | 2346 // bounds after every composition change to always have correct bound info. |
| 2347 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2347 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2348 ui::Range /* composition range */, | 2348 ui::Range /* composition range */, |
| 2349 std::vector<gfx::Rect> /* character bounds */) | 2349 std::vector<gfx::Rect> /* character bounds */) |
| 2350 #endif | 2350 #endif |
| 2351 | 2351 |
| 2352 // Adding a new message? Stick to the sort order above: first platform | 2352 // Adding a new message? Stick to the sort order above: first platform |
| 2353 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2353 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2354 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2354 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |