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

Unified Diff: content/browser/renderer_host/render_widget_host_view.h

Issue 8294026: Support IMM32 reconversion on Windows (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 2 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698