| 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 c8d9775c3e4c3ef842ba77f6dda70cd436c03018..5ec4783273dac18acf1e999d93ce349d5a4b8d76 100644
|
| --- a/content/public/test/text_input_test_utils.h
|
| +++ b/content/public/test/text_input_test_utils.h
|
| @@ -123,6 +123,10 @@ class TextInputManagerTester {
|
| // |TextInputState.value| of the TextInputManager.
|
| bool GetTextInputValue(std::string* value);
|
|
|
| + // Returns true if there is a focused <input> and populates |position| with
|
| + // |TextInputState.selection_start| of the TextInputManager.
|
| + bool GetTextInputCursorPosition(int* position);
|
| +
|
| // Returns true if there is a focused <input> and populates |length| with the
|
| // length of the selected text range in the focused view.
|
| bool GetCurrentTextSelectionLength(size_t* length);
|
| @@ -147,6 +151,12 @@ class TextInputManagerTester {
|
| // created).
|
| bool IsTextInputStateChanged();
|
|
|
| + // Returns true if there is a focused <input> and populates |user_initiated|
|
| + // with the information whether it was triggered by user interaction in the
|
| + // given view.
|
| + bool GetTextSelectionUserInitiatedForView(RenderWidgetHostView* view,
|
| + bool* user_initiated);
|
| +
|
| private:
|
| // The actual internal observer of the TextInputManager.
|
| class InternalObserver;
|
|
|