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

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

Issue 2240553003: Track text selection on the browser side (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #ifdef Created 4 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
Index: content/browser/renderer_host/text_input_manager.h
diff --git a/content/browser/renderer_host/text_input_manager.h b/content/browser/renderer_host/text_input_manager.h
index 6af828f83c1e8136f76b87b96e739cfa07f11b5d..61bef099a4acebcf715371f2c52ed9ee98d22e05 100644
--- a/content/browser/renderer_host/text_input_manager.h
+++ b/content/browser/renderer_host/text_input_manager.h
@@ -68,6 +68,10 @@ class CONTENT_EXPORT TextInputManager {
TextSelection(const TextSelection& other);
~TextSelection();
+ // If text selection is valid, |text| will be populated with the selected
+ // text and the method will return true. Otherwise, it will return false.
+ bool GetSelectedText(base::string16* text) const;
+
// The offset of the text stored in |text| relative to the start of the web
// page.
size_t offset;

Powered by Google App Engine
This is Rietveld 408576698