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

Unified Diff: content/renderer/render_widget.h

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 3bad78a5d109e9877a1035c282578a14e39d0517..bbb3dbceb6ef84fe59871019a650cdaacc2697f3 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -399,6 +399,16 @@ class RenderWidget : public IPC::Channel::Listener,
// Stores the current text input type of |webwidget_|.
ui::TextInputType text_input_type_;
+ // Stores the current surrounding text of |webwidget_|.
+ string16 surrounding_;
+
+ // Stores the current cursor in surrounding text of |webwidget_|.
+ size_t cursor_;
+
+ // Stores the current anchor in surrounding text of |webwidget_|.
+ size_t anchor_;
+
+
// Stores the current type of composition text rendering of |webwidget_|.
bool can_compose_inline_;
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698