Index: content/browser/renderer_host/render_widget_host_view.h |
diff --git a/content/browser/renderer_host/render_widget_host_view.h b/content/browser/renderer_host/render_widget_host_view.h |
index c727cf177bb0b4d2e8ff6e142c7f472b0c2c2a9a..7556525a034b7aa1dd5c81bbbd0969591dae8e2f 100644 |
--- a/content/browser/renderer_host/render_widget_host_view.h |
+++ b/content/browser/renderer_host/render_widget_host_view.h |
@@ -174,7 +174,7 @@ class RenderWidgetHostView { |
// Notifies the View that the renderer text selection has changed. |
virtual void SelectionChanged(const string16& text, |
size_t offset, |
- const ui::Range& range) {} |
+ const ui::Range& range); |
// Notifies the View that the renderer selection bounds has changed. |
// |start_rect| and |end_rect| are the bounds end of the selection in the |
@@ -354,6 +354,16 @@ class RenderWidgetHostView { |
// locked. |
bool mouse_locked_; |
+ // A buffer containing the text inside and around the current selection range. |
+ string16 selection_text_; |
+ |
+ // The offset of the text stored in |selection_text_| relative to the start of |
+ // the web page. |
+ size_t selection_text_offset_; |
+ |
+ // The current selection range relative to the start of the web page. |
+ ui::Range selection_range_; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
}; |