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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 size_t /* max_length */) | 459 size_t /* max_length */) |
433 | 460 |
434 // Tells the renderer to insert a link to the specified stylesheet. This is | 461 // Tells the renderer to insert a link to the specified stylesheet. This is |
435 // needed to support navigation transitions. | 462 // needed to support navigation transitions. |
436 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 463 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
437 | 464 |
438 // Change the accessibility mode in the renderer process. | 465 // Change the accessibility mode in the renderer process. |
439 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | 466 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
440 AccessibilityMode) | 467 AccessibilityMode) |
441 | 468 |
| 469 #if defined(OS_ANDROID) |
| 470 |
| 471 // External popup menus. |
| 472 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
| 473 bool /* user canceled the popup */, |
| 474 std::vector<int> /* selected indices */) |
| 475 |
| 476 #elif defined(OS_MACOSX) |
| 477 |
| 478 // External popup menus. |
| 479 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
| 480 int /* selected index, -1 means no selection */) |
| 481 |
| 482 #endif |
| 483 |
442 // ----------------------------------------------------------------------------- | 484 // ----------------------------------------------------------------------------- |
443 // Messages sent from the renderer to the browser. | 485 // Messages sent from the renderer to the browser. |
444 | 486 |
445 // Blink and JavaScript error messages to log to the console | 487 // Blink and JavaScript error messages to log to the console |
446 // or debugger UI. | 488 // or debugger UI. |
447 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 489 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
448 int32, /* log level */ | 490 int32, /* log level */ |
449 base::string16, /* msg */ | 491 base::string16, /* msg */ |
450 int32, /* line number */ | 492 int32, /* line number */ |
451 base::string16 /* source id */ ) | 493 base::string16 /* source id */ ) |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 std::string /* selector */, | 753 std::string /* selector */, |
712 std::string /* markup */) | 754 std::string /* markup */) |
713 | 755 |
714 // Tells the browser to perform a navigation. | 756 // Tells the browser to perform a navigation. |
715 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, | 757 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
716 FrameHostMsg_BeginNavigation_Params) | 758 FrameHostMsg_BeginNavigation_Params) |
717 | 759 |
718 // Sent once a paint happens after the first non empty layout. In other words | 760 // Sent once a paint happens after the first non empty layout. In other words |
719 // after the frame has painted something. | 761 // after the frame has painted something. |
720 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 762 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 763 |
| 764 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 765 |
| 766 // Message to show/hide a popup menu using native controls. |
| 767 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 768 FrameHostMsg_ShowPopup_Params) |
| 769 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 770 |
| 771 #endif |
OLD | NEW |