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 { |