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

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

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Suppress superfluous non-user initiated text selection events Created 3 years, 6 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 ec3f13499d090105c445427ac26efc3dc8e3fc59..bdf6f41f496962f9d09ece2db51496c005df6046 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -143,6 +143,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