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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1264 // Notifies the renderer that a snapshot has been retrieved. | 1264 // Notifies the renderer that a snapshot has been retrieved. |
1265 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 1265 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
1266 int /* snapshot_id */, | 1266 int /* snapshot_id */, |
1267 gfx::Size /* size */, | 1267 gfx::Size /* size */, |
1268 std::vector<unsigned char> /* png */) | 1268 std::vector<unsigned char> /* png */) |
1269 | 1269 |
1270 // Tells the renderer to suspend/resume the webkit timers. | 1270 // Tells the renderer to suspend/resume the webkit timers. |
1271 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, | 1271 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, |
1272 bool /* suspend */) | 1272 bool /* suspend */) |
1273 | 1273 |
1274 IPC_MESSAGE_ROUTED0(ViewMsg_PauseVideo); | |
1275 | |
1274 #if defined(OS_ANDROID) | 1276 #if defined(OS_ANDROID) |
1275 // Sent when the browser wants the bounding boxes of the current find matches. | 1277 // Sent when the browser wants the bounding boxes of the current find matches. |
1276 // | 1278 // |
1277 // If match rects are already cached on the browser side, |current_version| | 1279 // If match rects are already cached on the browser side, |current_version| |
1278 // should be the version number from the ViewHostMsg_FindMatchRects_Reply | 1280 // should be the version number from the ViewHostMsg_FindMatchRects_Reply |
1279 // they came in, so the renderer can tell if it needs to send updated rects. | 1281 // they came in, so the renderer can tell if it needs to send updated rects. |
1280 // Otherwise just pass -1 to always receive the list of rects. | 1282 // Otherwise just pass -1 to always receive the list of rects. |
1281 // | 1283 // |
1282 // There must be an active search string (it is probably most useful to call | 1284 // There must be an active search string (it is probably most useful to call |
1283 // this immediately after a ViewHostMsg_Find_Reply message arrives with | 1285 // this immediately after a ViewHostMsg_Find_Reply message arrives with |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2270 // Notification that the urls for the favicon of a site has been determined. | 2272 // Notification that the urls for the favicon of a site has been determined. |
2271 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, | 2273 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, |
2272 int32 /* page_id */, | 2274 int32 /* page_id */, |
2273 std::vector<content::FaviconURL> /* candidates */) | 2275 std::vector<content::FaviconURL> /* candidates */) |
2274 | 2276 |
2275 // Sent once a paint happens after the first non empty layout. In other words | 2277 // Sent once a paint happens after the first non empty layout. In other words |
2276 // after the page has painted something. | 2278 // after the page has painted something. |
2277 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | 2279 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
2278 int /* page_id */) | 2280 int /* page_id */) |
2279 | 2281 |
2282 | |
2283 | |
boliu
2013/09/19 01:58:39
nit: remove new lines
benm (inactive)
2013/09/19 03:27:32
Done.
| |
2280 #if defined(OS_ANDROID) | 2284 #if defined(OS_ANDROID) |
2281 // Response to ViewMsg_FindMatchRects. | 2285 // Response to ViewMsg_FindMatchRects. |
2282 // | 2286 // |
2283 // |version| will contain the current version number of the renderer's find | 2287 // |version| will contain the current version number of the renderer's find |
2284 // match list (incremented whenever they change), which should be passed in the | 2288 // match list (incremented whenever they change), which should be passed in the |
2285 // next call to ViewMsg_FindMatchRects. | 2289 // next call to ViewMsg_FindMatchRects. |
2286 // | 2290 // |
2287 // |rects| will either contain a list of the enclosing rects of all matches | 2291 // |rects| will either contain a list of the enclosing rects of all matches |
2288 // found by the most recent Find operation, or will be empty if |version| is not | 2292 // found by the most recent Find operation, or will be empty if |version| is not |
2289 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 2293 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2383 // synchronously (see crbug.com/120597). This IPC message sends the character | 2387 // synchronously (see crbug.com/120597). This IPC message sends the character |
2384 // bounds after every composition change to always have correct bound info. | 2388 // bounds after every composition change to always have correct bound info. |
2385 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2389 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2386 gfx::Range /* composition range */, | 2390 gfx::Range /* composition range */, |
2387 std::vector<gfx::Rect> /* character bounds */) | 2391 std::vector<gfx::Rect> /* character bounds */) |
2388 #endif | 2392 #endif |
2389 | 2393 |
2390 // Adding a new message? Stick to the sort order above: first platform | 2394 // Adding a new message? Stick to the sort order above: first platform |
2391 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2395 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2392 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2396 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |