Index: content/browser/web_contents/web_contents_impl.h |
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h |
index cf0f5050ca9c91ce43eea0076d75ab544d421cbd..15abd8f04f351a0c18ba16cdfb0d8fd4876e89cc 100644 |
--- a/content/browser/web_contents/web_contents_impl.h |
+++ b/content/browser/web_contents/web_contents_impl.h |
@@ -37,9 +37,11 @@ |
#include "net/base/load_states.h" |
#include "net/http/http_response_headers.h" |
#include "third_party/WebKit/public/web/WebDragOperation.h" |
+#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "ui/base/page_transition_types.h" |
#include "ui/gfx/geometry/rect_f.h" |
#include "ui/gfx/geometry/size.h" |
+#include "ui/touch_selection/selection_granularity.h" |
struct BrowserPluginHostMsg_ResizeGuest_Params; |
struct ViewHostMsg_DateTimeDialogValue_Params; |
@@ -641,7 +643,8 @@ class CONTENT_EXPORT WebContentsImpl |
typedef base::Callback<void(WebContents*)> CreatedCallback; |
// Requests the renderer to move the selection extent to a new position. |
- void MoveRangeSelectionExtent(const gfx::Point& extent); |
+ void MoveRangeSelectionExtent(const gfx::Point& extent, |
+ ui::TextSelectionGranularity granularity); |
// Requests the renderer to select the region between two points in the |
// currently focused frame. |
@@ -884,6 +887,9 @@ class CONTENT_EXPORT WebContentsImpl |
// Misc non-view stuff ------------------------------------------------------- |
+ blink::WebLocalFrame::TextGranularity ToWebTextGranularity( |
+ ui::TextSelectionGranularity granularity); |
+ |
// Sets the history for a specified RenderViewHost to |history_length| |
// entries, with an offset of |history_offset|. |
void SetHistoryOffsetAndLengthForView(RenderViewHost* render_view_host, |