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

Unified Diff: third_party/WebKit/public/web/WebContextMenuData.h

Issue 2855353002: Make Paste Popup use selection rect for positioning (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/web/WebContextMenuData.h
diff --git a/third_party/WebKit/public/web/WebContextMenuData.h b/third_party/WebKit/public/web/WebContextMenuData.h
index e23775101e1a928f0aeb7bd5dc218235d7c36682..80a42dd073630e7658549c24030c50a65fecb0ca 100644
--- a/third_party/WebKit/public/web/WebContextMenuData.h
+++ b/third_party/WebKit/public/web/WebContextMenuData.h
@@ -32,6 +32,7 @@
#define WebContextMenuData_h
#include "../platform/WebPoint.h"
+#include "../platform/WebRect.h"
#include "../platform/WebReferrerPolicy.h"
#include "../platform/WebString.h"
#include "../platform/WebURL.h"
@@ -189,6 +190,9 @@ struct WebContextMenuData {
// Custom context menu items provided by the WebCore internals.
WebVector<WebMenuItemInfo> custom_items;
+ // Selection in viewport coordinates.
+ WebRect selection_rect;
+
WebContextMenuData()
: media_type(kMediaTypeNone),
has_image_contents(false),

Powered by Google App Engine
This is Rietveld 408576698