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

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

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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/frame_param.h" 9 #include "content/common/frame_param.h"
10 #include "content/public/common/common_param_traits.h" 10 #include "content/public/common/common_param_traits.h"
11 #include "content/public/common/context_menu_params.h"
11 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 17
17 #define IPC_MESSAGE_START FrameMsgStart 18 #define IPC_MESSAGE_START FrameMsgStart
18 19
20 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType)
21 IPC_ENUM_TRAITS(ui::MenuSourceType)
22
23 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
24 IPC_STRUCT_TRAITS_MEMBER(media_type)
25 IPC_STRUCT_TRAITS_MEMBER(x)
26 IPC_STRUCT_TRAITS_MEMBER(y)
27 IPC_STRUCT_TRAITS_MEMBER(link_url)
28 IPC_STRUCT_TRAITS_MEMBER(link_text)
29 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
30 IPC_STRUCT_TRAITS_MEMBER(src_url)
31 IPC_STRUCT_TRAITS_MEMBER(has_image_contents)
32 IPC_STRUCT_TRAITS_MEMBER(page_url)
33 IPC_STRUCT_TRAITS_MEMBER(keyword_url)
34 IPC_STRUCT_TRAITS_MEMBER(frame_url)
35 IPC_STRUCT_TRAITS_MEMBER(frame_id)
36 IPC_STRUCT_TRAITS_MEMBER(frame_page_state)
37 IPC_STRUCT_TRAITS_MEMBER(media_flags)
38 IPC_STRUCT_TRAITS_MEMBER(selection_text)
39 IPC_STRUCT_TRAITS_MEMBER(misspelled_word)
40 IPC_STRUCT_TRAITS_MEMBER(misspelling_hash)
41 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
42 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled)
43 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
44 IPC_STRUCT_TRAITS_MEMBER(is_editable)
45 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
46 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right)
47 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left)
48 IPC_STRUCT_TRAITS_MEMBER(edit_flags)
49 IPC_STRUCT_TRAITS_MEMBER(security_info)
50 IPC_STRUCT_TRAITS_MEMBER(frame_charset)
51 IPC_STRUCT_TRAITS_MEMBER(referrer_policy)
52 IPC_STRUCT_TRAITS_MEMBER(custom_context)
53 IPC_STRUCT_TRAITS_MEMBER(custom_items)
54 IPC_STRUCT_TRAITS_MEMBER(source_type)
55 #if defined(OS_ANDROID)
56 IPC_STRUCT_TRAITS_MEMBER(selection_start)
57 IPC_STRUCT_TRAITS_MEMBER(selection_end)
58 #endif
59 IPC_STRUCT_TRAITS_END()
60
61 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext)
62 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
63 IPC_STRUCT_TRAITS_MEMBER(request_id)
64 IPC_STRUCT_TRAITS_MEMBER(render_widget_id)
65 IPC_STRUCT_TRAITS_END()
66
19 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) 67 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params)
20 // The frame ID for the failure report. 68 // The frame ID for the failure report.
21 IPC_STRUCT_MEMBER(int64, frame_id) 69 IPC_STRUCT_MEMBER(int64, frame_id)
22 // The WebFrame's uniqueName(). 70 // The WebFrame's uniqueName().
23 IPC_STRUCT_MEMBER(base::string16, frame_unique_name) 71 IPC_STRUCT_MEMBER(base::string16, frame_unique_name)
24 // True if this is the top-most frame. 72 // True if this is the top-most frame.
25 IPC_STRUCT_MEMBER(bool, is_main_frame) 73 IPC_STRUCT_MEMBER(bool, is_main_frame)
26 // Error code as reported in the DidFailProvisionalLoad callback. 74 // Error code as reported in the DidFailProvisionalLoad callback.
27 IPC_STRUCT_MEMBER(int, error_code) 75 IPC_STRUCT_MEMBER(int, error_code)
28 // An error message generated from the error_code. This can be an empty 76 // An error message generated from the error_code. This can be an empty
(...skipping 21 matching lines...) Expand all
50 98
51 // Notifies the embedding frame that a new CompositorFrame is ready to be 99 // Notifies the embedding frame that a new CompositorFrame is ready to be
52 // presented. When the frame finishes presenting, a matching 100 // presented. When the frame finishes presenting, a matching
53 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the 101 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the
54 // RenderViewHost that was produced the CompositorFrame. 102 // RenderViewHost that was produced the CompositorFrame.
55 // 103 //
56 // This is used in the ubercomp compositing path. 104 // This is used in the ubercomp compositing path.
57 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, 105 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped,
58 FrameMsg_CompositorFrameSwapped_Params /* params */) 106 FrameMsg_CompositorFrameSwapped_Params /* params */)
59 107
108 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that
109 // the menu has been closed.
110 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed,
111 content::CustomContextMenuContext /* custom_context */)
112
113 // Executes custom context menu action that was provided from WebKit.
nasko 2014/01/31 00:38:17 nit: Blink?
jam 2014/01/31 00:45:53 Done.
114 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction,
115 content::CustomContextMenuContext /* custom_context */,
116 unsigned /* action */)
117
60 // ----------------------------------------------------------------------------- 118 // -----------------------------------------------------------------------------
61 // Messages sent from the renderer to the browser. 119 // Messages sent from the renderer to the browser.
62 120
63 // Sent by the renderer when a child frame is created in the renderer. The 121 // Sent by the renderer when a child frame is created in the renderer. The
64 // |parent_frame_id| and |frame_id| are NOT routing ids. They are 122 // |parent_frame_id| and |frame_id| are NOT routing ids. They are
65 // renderer-allocated identifiers used for tracking a frame's creation. 123 // renderer-allocated identifiers used for tracking a frame's creation.
66 // 124 //
67 // Each of these messages will have a corresponding FrameHostMsg_Detach message 125 // Each of these messages will have a corresponding FrameHostMsg_Detach message
68 // sent when the frame is detached from the DOM. 126 // sent when the frame is detached from the DOM.
69 // 127 //
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Indicates that the current frame has swapped out, after a SwapOut message. 217 // Indicates that the current frame has swapped out, after a SwapOut message.
160 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK) 218 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK)
161 219
162 IPC_MESSAGE_ROUTED1(FrameHostMsg_ReclaimCompositorResources, 220 IPC_MESSAGE_ROUTED1(FrameHostMsg_ReclaimCompositorResources,
163 FrameHostMsg_ReclaimCompositorResources_Params /* params */) 221 FrameHostMsg_ReclaimCompositorResources_Params /* params */)
164 222
165 // Instructs the frame to swap out for a cross-site transition, including 223 // Instructs the frame to swap out for a cross-site transition, including
166 // running the unload event handler. Expects a SwapOut_ACK message when 224 // running the unload event handler. Expects a SwapOut_ACK message when
167 // finished. 225 // finished.
168 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) 226 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut)
227
228 // Used to tell the parent that the user right clicked on an area of the
229 // content area, and a context menu should be shown for it. The params
230 // object contains information about the node(s) that were selected when the
231 // user right clicked.
232 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698