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

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

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Created 3 years, 8 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 f377320e69d83d3b7911ee8ca2bb18584db48e57..31eec19709797d149e6beb59edbc052fd2f9e1b4 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -126,6 +126,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;

Powered by Google App Engine
This is Rietveld 408576698