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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: Fixing rebase bug 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 9e261cb4ff879e36dabf2aba8a5be9e99705fcb7..95183d836690acab2bb3d26bc1bdf9dce8981aad 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"
@@ -188,6 +189,10 @@ struct WebContextMenuData {
// Custom context menu items provided by the WebCore internals.
WebVector<WebMenuItemInfo> custom_items;
+ WebRect selection_rect;
+
+ bool from_touch;
+
WebContextMenuData()
: media_type(kMediaTypeNone),
has_image_contents(false),
@@ -197,7 +202,8 @@ struct WebContextMenuData {
writing_direction_default(kCheckableMenuItemDisabled),
writing_direction_left_to_right(kCheckableMenuItemEnabled),
writing_direction_right_to_left(kCheckableMenuItemEnabled),
- edit_flags(0) {}
+ edit_flags(0),
+ from_touch(false) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698