Chromium Code Reviews| 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 3dd65803c82aa8f5f328df32ff776c1a6d49d2af..ede721dea171a55d3489a5884d252cbc8fd2fda5 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,15 @@ class RenderWidgetHostView { |
| // locked. |
| bool mouse_locked_; |
| + // A piece of text which convers the selection in the web page. |
|
James Su
2011/10/26 04:25:38
How about something like: A buffer containing the
Peng
2011/10/26 16:20:16
Done.
|
| + string16 selection_text_; |
| + |
| + // The offset of |selection_text_| in web page. |
|
James Su
2011/10/26 04:25:38
How about something like: The offset of the text s
Peng
2011/10/26 16:20:16
Done.
|
| + size_t selection_text_offset_; |
| + |
| + // The selection range in the web page. |
|
James Su
2011/10/26 04:25:38
How about: The current selection range relative to
Peng
2011/10/26 16:20:16
Done.
|
| + ui::Range selection_range_; |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| }; |