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

Unified Diff: content/public/test/text_input_test_utils.h

Issue 2149493004: [refactor] Removing the dead method RenderWidgetHostView::GetSelectedText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call method on correct view Created 4 years, 5 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/public/test/text_input_test_utils.h
diff --git a/content/public/test/text_input_test_utils.h b/content/public/test/text_input_test_utils.h
index 97b1da1a76da600d20012d722a49a0c3db3c35b0..04d53359b800b0b67bcc147c4db6d8b744ace95c 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -59,6 +59,13 @@ void SetCompositionForRenderWidgetHost(
int selection_start,
int selection_end);
+// This methods returns the current selection text for the |view|.
+// TODO(ekaramad): GetSelectedText() is based on an outdated API which is now
+// removed. After implementing IME for OOPIF, change this to use a more updated
+// API from TextInputManager.
+base::string16 GetSelectedTextForRenderWidgetHostView(
+ RenderWidgetHostView* view);
+
// This class provides the necessary API for accessing the state of and also
// observing the TextInputManager for WebContents.
class TextInputManagerTester {

Powered by Google App Engine
This is Rietveld 408576698