OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // |salt + url.spec()|. | 493 // |salt + url.spec()|. |
494 IPC_STRUCT_MEMBER(std::set<std::string>, digests_of_uris_to_skip) | 494 IPC_STRUCT_MEMBER(std::set<std::string>, digests_of_uris_to_skip) |
495 | 495 |
496 // Salt used for |digests_of_uris_to_skip|. | 496 // Salt used for |digests_of_uris_to_skip|. |
497 IPC_STRUCT_MEMBER(std::string, salt) | 497 IPC_STRUCT_MEMBER(std::string, salt) |
498 | 498 |
499 // If |is_last_frame| is true, then an MHTML footer will be generated. | 499 // If |is_last_frame| is true, then an MHTML footer will be generated. |
500 IPC_STRUCT_MEMBER(bool, is_last_frame) | 500 IPC_STRUCT_MEMBER(bool, is_last_frame) |
501 IPC_STRUCT_END() | 501 IPC_STRUCT_END() |
502 | 502 |
| 503 // This message is used to send hittesting data from the renderer in order |
| 504 // to perform hittesting on the browser process. |
| 505 IPC_STRUCT_BEGIN(FrameHostMsg_HittestData_Params) |
| 506 // |surface_id| represents the surface used by this remote frame. |
| 507 IPC_STRUCT_MEMBER(cc::SurfaceId, surface_id) |
| 508 |
| 509 // If |ignored_for_hittest| then this surface should be ignored during |
| 510 // hittesting. |
| 511 IPC_STRUCT_MEMBER(bool, ignored_for_hittest) |
| 512 IPC_STRUCT_END() |
| 513 |
503 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 514 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
504 // This message is used for supporting popup menus on Mac OS X and Android using | 515 // This message is used for supporting popup menus on Mac OS X and Android using |
505 // native controls. See the FrameHostMsg_ShowPopup message. | 516 // native controls. See the FrameHostMsg_ShowPopup message. |
506 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 517 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
507 // Position on the screen. | 518 // Position on the screen. |
508 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 519 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
509 | 520 |
510 // The height of each item in the menu. | 521 // The height of each item in the menu. |
511 IPC_STRUCT_MEMBER(int, item_height) | 522 IPC_STRUCT_MEMBER(int, item_height) |
512 | 523 |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 // coordinates) for the string found. If |final_update| is false, it signals | 1409 // coordinates) for the string found. If |final_update| is false, it signals |
1399 // that this is not the last Find_Reply message - more will be sent as the | 1410 // that this is not the last Find_Reply message - more will be sent as the |
1400 // scoping effort continues. | 1411 // scoping effort continues. |
1401 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, | 1412 IPC_MESSAGE_ROUTED5(FrameHostMsg_Find_Reply, |
1402 int /* request_id */, | 1413 int /* request_id */, |
1403 int /* number of matches */, | 1414 int /* number of matches */, |
1404 gfx::Rect /* selection_rect */, | 1415 gfx::Rect /* selection_rect */, |
1405 int /* active_match_ordinal */, | 1416 int /* active_match_ordinal */, |
1406 bool /* final_update */) | 1417 bool /* final_update */) |
1407 | 1418 |
| 1419 // Sends hittesting data needed to perform hittesting on the browser process. |
| 1420 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) |
| 1421 |
1408 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1422 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1409 | 1423 |
1410 // Message to show/hide a popup menu using native controls. | 1424 // Message to show/hide a popup menu using native controls. |
1411 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1425 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1412 FrameHostMsg_ShowPopup_Params) | 1426 FrameHostMsg_ShowPopup_Params) |
1413 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1427 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1414 | 1428 |
1415 #endif | 1429 #endif |
1416 | 1430 |
1417 #if defined(OS_ANDROID) | 1431 #if defined(OS_ANDROID) |
(...skipping 15 matching lines...) Expand all Loading... |
1433 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1447 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1434 int /* version */, | 1448 int /* version */, |
1435 std::vector<gfx::RectF> /* rects */, | 1449 std::vector<gfx::RectF> /* rects */, |
1436 gfx::RectF /* active_rect */) | 1450 gfx::RectF /* active_rect */) |
1437 #endif | 1451 #endif |
1438 | 1452 |
1439 // Adding a new message? Stick to the sort order above: first platform | 1453 // Adding a new message? Stick to the sort order above: first platform |
1440 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1454 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1441 // platform independent FrameHostMsg, then ifdefs for platform specific | 1455 // platform independent FrameHostMsg, then ifdefs for platform specific |
1442 // FrameHostMsg. | 1456 // FrameHostMsg. |
OLD | NEW |