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

Unified Diff: content/public/common/context_menu_params.h

Issue 2855353002: Make Paste Popup use selection rect for positioning (Closed)
Patch Set: fix typo Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/context_menu_params.h
diff --git a/content/public/common/context_menu_params.h b/content/public/common/context_menu_params.h
index f052d3ffdb0cd95392fbb9da46e04f337464ecc2..7c104b8ed164687faf8f52a601a432d72ad6d755 100644
--- a/content/public/common/context_menu_params.h
+++ b/content/public/common/context_menu_params.h
@@ -20,12 +20,9 @@
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "third_party/WebKit/public/web/WebContextMenuData.h"
#include "ui/base/ui_base_types.h"
+#include "ui/gfx/geometry/rect.h"
#include "url/gurl.h"
-#if defined(OS_ANDROID)
-#include "ui/gfx/geometry/point.h"
-#endif
-
namespace content {
struct CONTENT_EXPORT CustomContextMenuContext {
@@ -156,15 +153,11 @@ struct CONTENT_EXPORT ContextMenuParams {
// Extra properties for the context menu.
std::map<std::string, std::string> properties;
-#if defined(OS_ANDROID)
- // Points representing the coordinates in the document space of the start and
- // end of the selection, if there is one.
- gfx::Point selection_start;
- gfx::Point selection_end;
-#endif
-
// If this node is an input field, the type of that field.
blink::WebContextMenuData::InputFieldType input_field_type;
+
+ // Rect representing the coordinates in the document space of the selection.
+ gfx::Rect selection_rect;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698