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

Side by Side Diff: webkit/glue/context_menu.h

Issue 9045007: Allow plugins to participate in Chrome context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_ 5 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_
6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 int64 frame_id; 79 int64 frame_id;
80 80
81 // This is the history item state of the subframe that the context menu was 81 // This is the history item state of the subframe that the context menu was
82 // invoked on. 82 // invoked on.
83 std::string frame_content_state; 83 std::string frame_content_state;
84 84
85 // These are the parameters for the media element that the context menu 85 // These are the parameters for the media element that the context menu
86 // was invoked on. 86 // was invoked on.
87 int media_flags; 87 int media_flags;
88 88
89 // These are the parameters for the plugin element that the context menu
90 // was invoked on.
jam 2011/12/27 19:43:39 do we really need to add this? can't we use custom
bbudge 2011/12/28 15:19:42 Wouldn't that require that the plugin defines the
91 int plugin_flags;
92
89 // This is the text of the selection that the context menu was invoked on. 93 // This is the text of the selection that the context menu was invoked on.
90 string16 selection_text; 94 string16 selection_text;
91 95
92 // The misspelled word under the cursor, if any. Used to generate the 96 // The misspelled word under the cursor, if any. Used to generate the
93 // |dictionary_suggestions| list. 97 // |dictionary_suggestions| list.
94 string16 misspelled_word; 98 string16 misspelled_word;
95 99
96 // Suggested replacements for a misspelled word under the cursor. 100 // Suggested replacements for a misspelled word under the cursor.
97 // This vector gets populated in the render process host 101 // This vector gets populated in the render process host
98 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter 102 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 136
133 webkit_glue::CustomContextMenuContext custom_context; 137 webkit_glue::CustomContextMenuContext custom_context;
134 std::vector<WebMenuItem> custom_items; 138 std::vector<WebMenuItem> custom_items;
135 139
136 ContextMenuParams(); 140 ContextMenuParams();
137 ContextMenuParams(const WebKit::WebContextMenuData& data); 141 ContextMenuParams(const WebKit::WebContextMenuData& data);
138 ~ContextMenuParams(); 142 ~ContextMenuParams();
139 }; 143 };
140 144
141 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ 145 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698