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

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: Fixed the failing tests on 'mac_chromium_rel_ng' 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 b09ae5069420f5c96af8b022c118a5a5e52fc008..fde9d55072f62fdbef215682ede3b786f3e5d111 100644
--- a/content/browser/renderer_host/text_input_manager.h
+++ b/content/browser/renderer_host/text_input_manager.h
@@ -109,6 +109,12 @@ class CONTENT_EXPORT TextInputManager {
const TextSelection* GetTextSelection(
RenderWidgetHostViewBase* view = nullptr) const;
+ // This method will try to obtain the selected text for |view|. If successful,
+ // it will return true and populate |selected_text| with the right value.
+ // Otherwise reutrns false.
Avi (use Gerrit) 2016/08/12 15:53:10 returns
EhsanK 2016/08/16 13:36:45 Done.
+ bool GetSelectedText(RenderWidgetHostViewBase* view,
+ base::string16* selected_text) const;
+
// ---------------------------------------------------------------------------
// The following methods are called by RWHVs on the tab to update their IME-
// related state.

Powered by Google App Engine
This is Rietveld 408576698