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

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

Issue 335023: Add the feature "Add as seach engine..." when right clicking on ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 5 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/common/view_messages.h ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // video. 59 // video.
60 GURL src_url; 60 GURL src_url;
61 61
62 // This is true if the context menu was invoked on a blocked image. 62 // This is true if the context menu was invoked on a blocked image.
63 bool is_image_blocked; 63 bool is_image_blocked;
64 64
65 // This is the URL of the top level page that the context menu was invoked 65 // This is the URL of the top level page that the context menu was invoked
66 // on. 66 // on.
67 GURL page_url; 67 GURL page_url;
68 68
69 // This is the absolute keyword search URL including the %s search tag when
70 // the "Add as search engine..." option is clicked (left empty if not used).
71 GURL keyword_url;
72
69 // This is the URL of the subframe that the context menu was invoked on. 73 // This is the URL of the subframe that the context menu was invoked on.
70 GURL frame_url; 74 GURL frame_url;
71 75
72 // This is the history item state of the subframe that the context menu was 76 // This is the history item state of the subframe that the context menu was
73 // invoked on. 77 // invoked on.
74 std::string frame_content_state; 78 std::string frame_content_state;
75 79
76 // These are the parameters for the media element that the context menu 80 // These are the parameters for the media element that the context menu
77 // was invoked on. 81 // was invoked on.
78 int media_flags; 82 int media_flags;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 121
118 webkit_glue::CustomContextMenuContext custom_context; 122 webkit_glue::CustomContextMenuContext custom_context;
119 std::vector<WebMenuItem> custom_items; 123 std::vector<WebMenuItem> custom_items;
120 124
121 ContextMenuParams(); 125 ContextMenuParams();
122 ContextMenuParams(const WebKit::WebContextMenuData& data); 126 ContextMenuParams(const WebKit::WebContextMenuData& data);
123 ~ContextMenuParams(); 127 ~ContextMenuParams();
124 }; 128 };
125 129
126 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ 130 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698