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

Side by Side Diff: content/public/common/context_menu_params.h

Issue 678653003: Remove Downcasting RVContextMenuBase in ContextMenuDeleagate implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @toot Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ~ContextMenuParams(); 54 ~ContextMenuParams();
55 55
56 // This is the type of Context Node that the context menu was invoked on. 56 // This is the type of Context Node that the context menu was invoked on.
57 blink::WebContextMenuData::MediaType media_type; 57 blink::WebContextMenuData::MediaType media_type;
58 58
59 // These values represent the coordinates of the mouse when the context menu 59 // These values represent the coordinates of the mouse when the context menu
60 // was invoked. Coords are relative to the associated RenderView's origin. 60 // was invoked. Coords are relative to the associated RenderView's origin.
61 int x; 61 int x;
62 int y; 62 int y;
63 63
64 // These values represent the screen coordicates of the mouse when the
65 // context menu was invoked. These values are set in the browser/.
66 float screen_x;
sky 2014/10/27 19:24:53 These should be set in content before the params a
lazyboy 2014/10/27 22:01:13 I just hit a bump while doing this in RenderFrameH
67 float screen_y;
68
64 // This is the URL of the link that encloses the node the context menu was 69 // This is the URL of the link that encloses the node the context menu was
65 // invoked on. 70 // invoked on.
66 GURL link_url; 71 GURL link_url;
67 72
68 // The text associated with the link. May be an empty string if the contents 73 // The text associated with the link. May be an empty string if the contents
69 // of the link are an image. 74 // of the link are an image.
70 // Will be empty if link_url is empty. 75 // Will be empty if link_url is empty.
71 base::string16 link_text; 76 base::string16 link_text;
72 77
73 // The link URL to be used ONLY for "copy link address". We don't validate 78 // The link URL to be used ONLY for "copy link address". We don't validate
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Points representing the coordinates in the document space of the start and 160 // Points representing the coordinates in the document space of the start and
156 // end of the selection, if there is one. 161 // end of the selection, if there is one.
157 gfx::Point selection_start; 162 gfx::Point selection_start;
158 gfx::Point selection_end; 163 gfx::Point selection_end;
159 #endif 164 #endif
160 }; 165 };
161 166
162 } // namespace content 167 } // namespace content
163 168
164 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 169 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « components/renderer_context_menu/render_view_context_menu_base.cc ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698