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

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

Issue 6880275: Web Introducer overview Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_message_utils.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "webkit/glue/webmenuitem.h" 13 #include "webkit/glue/webmenuitem.h"
14 14
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
16 16
17 namespace webkit_glue { 17 namespace webkit_glue {
18 18
19 struct CustomContextMenuContext { 19 struct CustomContextMenuContext {
20 bool is_pepper_menu; 20 bool is_pepper_menu;
21 int request_id; 21 int request_id;
22 22
23 CustomContextMenuContext(); 23 CustomContextMenuContext();
24 }; 24 };
25 25
26 struct IntroductionContext {
27 int request_id;
28 std::string customer;
29 int64 frame_id;
30 std::vector<std::string> wanted;
31 int port_id;
32
33 IntroductionContext() : request_id(0), frame_id(0), port_id(0) {}
34 };
35
26 } // namespace webkit_glue 36 } // namespace webkit_glue
27 37
28 // TODO(viettrungluu): Put this in the webkit_glue namespace. 38 // TODO(viettrungluu): Put this in the webkit_glue namespace.
29 // Parameters structure for ViewHostMsg_ContextMenu. 39 // Parameters structure for ViewHostMsg_ContextMenu.
30 // FIXME(beng): This would be more useful in the future and more efficient 40 // FIXME(beng): This would be more useful in the future and more efficient
31 // if the parameters here weren't so literally mapped to what 41 // if the parameters here weren't so literally mapped to what
32 // they contain for the ContextMenu task. It might be better 42 // they contain for the ContextMenu task. It might be better
33 // to make the string fields more generic so that this object 43 // to make the string fields more generic so that this object
34 // could be used for more contextual actions. 44 // could be used for more contextual actions.
35 struct ContextMenuParams { 45 struct ContextMenuParams {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // These flags indicate to the browser whether the renderer believes it is 113 // These flags indicate to the browser whether the renderer believes it is
104 // able to perform the corresponding action. 114 // able to perform the corresponding action.
105 int edit_flags; 115 int edit_flags;
106 116
107 // The security info for the resource we are showing the menu on. 117 // The security info for the resource we are showing the menu on.
108 std::string security_info; 118 std::string security_info;
109 119
110 // The character encoding of the frame on which the menu is invoked. 120 // The character encoding of the frame on which the menu is invoked.
111 std::string frame_charset; 121 std::string frame_charset;
112 122
123 webkit_glue::IntroductionContext introduction_context;
113 webkit_glue::CustomContextMenuContext custom_context; 124 webkit_glue::CustomContextMenuContext custom_context;
114 std::vector<WebMenuItem> custom_items; 125 std::vector<WebMenuItem> custom_items;
115 126
116 ContextMenuParams(); 127 ContextMenuParams();
117 ContextMenuParams(const WebKit::WebContextMenuData& data); 128 ContextMenuParams(const WebKit::WebContextMenuData& data);
118 ~ContextMenuParams(); 129 ~ContextMenuParams();
119 }; 130 };
120 131
121 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ 132 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.h ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698