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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) | 298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) |
299 | 299 |
300 // Whether this navigation should replace the current session history entry on | 300 // Whether this navigation should replace the current session history entry on |
301 // commit. | 301 // commit. |
302 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 302 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
303 | 303 |
304 // Whether or not we should allow the URL to download. | 304 // Whether or not we should allow the URL to download. |
305 IPC_STRUCT_MEMBER(bool, allow_download) | 305 IPC_STRUCT_MEMBER(bool, allow_download) |
306 IPC_STRUCT_END() | 306 IPC_STRUCT_END() |
307 | 307 |
| 308 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 309 // This message is used for supporting popup menus on Mac OS X and Android using |
| 310 // native controls. See the FrameHostMsg_ShowPopup message. |
| 311 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
| 312 // Position on the screen. |
| 313 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
| 314 |
| 315 // The height of each item in the menu. |
| 316 IPC_STRUCT_MEMBER(int, item_height) |
| 317 |
| 318 // The size of the font to use for those items. |
| 319 IPC_STRUCT_MEMBER(double, item_font_size) |
| 320 |
| 321 // The currently selected (displayed) item in the menu. |
| 322 IPC_STRUCT_MEMBER(int, selected_item) |
| 323 |
| 324 // The entire list of items in the popup menu. |
| 325 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items) |
| 326 |
| 327 // Whether items should be right-aligned. |
| 328 IPC_STRUCT_MEMBER(bool, right_aligned) |
| 329 |
| 330 // Whether this is a multi-select popup. |
| 331 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) |
| 332 IPC_STRUCT_END() |
| 333 #endif |
| 334 |
308 // ----------------------------------------------------------------------------- | 335 // ----------------------------------------------------------------------------- |
309 // Messages sent from the browser to the renderer. | 336 // Messages sent from the browser to the renderer. |
310 | 337 |
311 // When HW accelerated buffers are swapped in an out-of-process child frame | 338 // When HW accelerated buffers are swapped in an out-of-process child frame |
312 // renderer, the message is forwarded to the embedding frame to notify it of | 339 // renderer, the message is forwarded to the embedding frame to notify it of |
313 // a new texture available for compositing. When the buffer has finished | 340 // a new texture available for compositing. When the buffer has finished |
314 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to | 341 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to |
315 // gpu host that produced this buffer. | 342 // gpu host that produced this buffer. |
316 // | 343 // |
317 // This is used in the non-ubercomp HW accelerated compositing path. | 344 // This is used in the non-ubercomp HW accelerated compositing path. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 size_t /* max_length */) | 456 size_t /* max_length */) |
430 | 457 |
431 // Tells the renderer to insert a link to the specified stylesheet. This is | 458 // Tells the renderer to insert a link to the specified stylesheet. This is |
432 // needed to support navigation transitions. | 459 // needed to support navigation transitions. |
433 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 460 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
434 | 461 |
435 // Change the accessibility mode in the renderer process. | 462 // Change the accessibility mode in the renderer process. |
436 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | 463 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
437 AccessibilityMode) | 464 AccessibilityMode) |
438 | 465 |
| 466 #if defined(OS_ANDROID) |
| 467 |
| 468 // External popup menus. |
| 469 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
| 470 bool /* user canceled the popup */, |
| 471 std::vector<int> /* selected indices */) |
| 472 |
| 473 #elif defined(OS_MACOSX) |
| 474 |
| 475 // External popup menus. |
| 476 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
| 477 int /* selected index, -1 means no selection */) |
| 478 |
| 479 #endif |
| 480 |
439 // ----------------------------------------------------------------------------- | 481 // ----------------------------------------------------------------------------- |
440 // Messages sent from the renderer to the browser. | 482 // Messages sent from the renderer to the browser. |
441 | 483 |
442 // Blink and JavaScript error messages to log to the console | 484 // Blink and JavaScript error messages to log to the console |
443 // or debugger UI. | 485 // or debugger UI. |
444 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 486 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
445 int32, /* log level */ | 487 int32, /* log level */ |
446 base::string16, /* msg */ | 488 base::string16, /* msg */ |
447 int32, /* line number */ | 489 int32, /* line number */ |
448 base::string16 /* source id */ ) | 490 base::string16 /* source id */ ) |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 std::string /* selector */, | 750 std::string /* selector */, |
709 std::string /* markup */) | 751 std::string /* markup */) |
710 | 752 |
711 // Tells the browser to perform a navigation. | 753 // Tells the browser to perform a navigation. |
712 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, | 754 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
713 FrameHostMsg_BeginNavigation_Params) | 755 FrameHostMsg_BeginNavigation_Params) |
714 | 756 |
715 // Sent once a paint happens after the first non empty layout. In other words | 757 // Sent once a paint happens after the first non empty layout. In other words |
716 // after the frame has painted something. | 758 // after the frame has painted something. |
717 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 759 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 760 |
| 761 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 762 |
| 763 // Message to show/hide a popup menu using native controls. |
| 764 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 765 FrameHostMsg_ShowPopup_Params) |
| 766 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 767 |
| 768 #endif |
OLD | NEW |