Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: content/common/frame_messages.h

Issue 1141283002: Replicate whether a frame is in a document or shadow tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/frame_replication_state.h" 12 #include "content/common/frame_replication_state.h"
13 #include "content/common/navigation_gesture.h" 13 #include "content/common/navigation_gesture.h"
14 #include "content/common/navigation_params.h" 14 #include "content/common/navigation_params.h"
15 #include "content/common/resource_request_body.h" 15 #include "content/common/resource_request_body.h"
16 #include "content/public/common/color_suggestion.h" 16 #include "content/public/common/color_suggestion.h"
17 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
18 #include "content/public/common/context_menu_params.h" 18 #include "content/public/common/context_menu_params.h"
19 #include "content/public/common/frame_navigate_params.h" 19 #include "content/public/common/frame_navigate_params.h"
20 #include "content/public/common/javascript_message_type.h" 20 #include "content/public/common/javascript_message_type.h"
21 #include "content/public/common/message_port_types.h" 21 #include "content/public/common/message_port_types.h"
22 #include "content/public/common/page_state.h" 22 #include "content/public/common/page_state.h"
23 #include "content/public/common/resource_response.h" 23 #include "content/public/common/resource_response.h"
24 #include "content/public/common/transition_element.h" 24 #include "content/public/common/transition_element.h"
25 #include "ipc/ipc_message_macros.h" 25 #include "ipc/ipc_message_macros.h"
26 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
26 #include "ui/gfx/ipc/gfx_param_traits.h" 27 #include "ui/gfx/ipc/gfx_param_traits.h"
27 #include "url/gurl.h" 28 #include "url/gurl.h"
28 #include "url/origin.h" 29 #include "url/origin.h"
29 30
30 #undef IPC_MESSAGE_EXPORT 31 #undef IPC_MESSAGE_EXPORT
31 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 32 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
32 33
33 #define IPC_MESSAGE_START FrameMsgStart 34 #define IPC_MESSAGE_START FrameMsgStart
34 35
35 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, 36 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
36 AccessibilityModeOff, 37 AccessibilityModeOff,
37 AccessibilityModeComplete) 38 AccessibilityModeComplete)
38 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, 39 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
39 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, 40 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
40 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) 41 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
41 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 42 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
42 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 43 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
43 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, 44 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value,
44 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) 45 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST)
45 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
46 blink::WebContextMenuData::MediaTypeLast) 47 blink::WebContextMenuData::MediaTypeLast)
48 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType,
49 blink::WebTreeScopeType::Last)
47 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 50 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
48 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask. 51 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask.
49 52
50 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 53 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
51 IPC_STRUCT_TRAITS_MEMBER(color) 54 IPC_STRUCT_TRAITS_MEMBER(color)
52 IPC_STRUCT_TRAITS_MEMBER(label) 55 IPC_STRUCT_TRAITS_MEMBER(label)
53 IPC_STRUCT_TRAITS_END() 56 IPC_STRUCT_TRAITS_END()
54 57
55 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 58 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
56 IPC_STRUCT_TRAITS_MEMBER(media_type) 59 IPC_STRUCT_TRAITS_MEMBER(media_type)
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 638 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
636 int32, /* log level */ 639 int32, /* log level */
637 base::string16, /* msg */ 640 base::string16, /* msg */
638 int32, /* line number */ 641 int32, /* line number */
639 base::string16 /* source id */ ) 642 base::string16 /* source id */ )
640 643
641 // Sent by the renderer when a child frame is created in the renderer. 644 // Sent by the renderer when a child frame is created in the renderer.
642 // 645 //
643 // Each of these messages will have a corresponding FrameHostMsg_Detach message 646 // Each of these messages will have a corresponding FrameHostMsg_Detach message
644 // sent when the frame is detached from the DOM. 647 // sent when the frame is detached from the DOM.
645 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_CreateChildFrame, 648 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame,
646 int32 /* parent_routing_id */, 649 int32 /* parent_routing_id */,
650 blink::WebTreeScopeType /* scope */,
647 std::string /* frame_name */, 651 std::string /* frame_name */,
648 content::SandboxFlags /* sandbox flags */, 652 content::SandboxFlags /* sandbox flags */,
649 int32 /* new_routing_id */) 653 int32 /* new_routing_id */)
650 654
651 // Sent by the renderer to the parent RenderFrameHost when a child frame is 655 // Sent by the renderer to the parent RenderFrameHost when a child frame is
652 // detached from the DOM. 656 // detached from the DOM.
653 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) 657 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
654 658
655 // Indicates the renderer process is gone. This actually is sent by the 659 // Indicates the renderer process is gone. This actually is sent by the
656 // browser process to itself, but keeps the interface cleaner. 660 // browser process to itself, but keeps the interface cleaner.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 FrameMsg_PostMessage_Params) 975 FrameMsg_PostMessage_Params)
972 976
973 #if defined(OS_MACOSX) || defined(OS_ANDROID) 977 #if defined(OS_MACOSX) || defined(OS_ANDROID)
974 978
975 // Message to show/hide a popup menu using native controls. 979 // Message to show/hide a popup menu using native controls.
976 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 980 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
977 FrameHostMsg_ShowPopup_Params) 981 FrameHostMsg_ShowPopup_Params)
978 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 982 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
979 983
980 #endif 984 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698