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

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

Issue 2659433002: Track Text Selection information in TextInputManager (OOPIF for Android) (Closed)
Patch Set: Clean ups Created 3 years, 11 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_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 95fdd69d632ee251948af0ac3191409f2ef63bdd..408eb9d0f7e38da556b1290e622085d507de919b 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -550,6 +550,18 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// Whether a request to flush input has been issued.
bool needs_flush_input_;
+ // TODO(ekaramad): Remove the following locals and get the selection
+ // information directly from TextInputManager.
+ // A buffer containing the text inside and around the current selection range.
+ base::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.
+ gfx::Range selection_range_;
+
// Factory used to safely scope delayed calls to ShutdownHost().
base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698