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

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

Issue 2057803002: Tracking SelectionBounds for all RenderWidgets on the Browser Side (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Compile Errors Created 4 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 5b78a5602e4b4c3669e318e37eb0d71a938c8a15..4c8d350fbe0c302af3634a83dc6ec6b6cc3f8e56 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -49,6 +49,10 @@ class TextInputManagerTester {
// on the TextInputManager which is being observed.
void SetUpdateTextInputStateCalledCallback(const Callback& callback);
+ // Sets a callback which is invoked when a RWHV calls SelectionBoundsChanged
+ // on the TextInputManager which is being observed.
+ void SetOnSelectionBoundsChangedCallback(const Callback& callback);
+
// Returns true if there is a focused <input> and populates |type| with
// |TextInputState.type| of the TextInputManager.
bool GetTextInputType(ui::TextInputType* type);
@@ -61,8 +65,8 @@ class TextInputManagerTester {
// if none exists.
const RenderWidgetHostView* GetActiveView();
- // Returns the RenderWidgetHostView which has most recently called
- // TextInputManager::UpdateTextInputState on the TextInputManager which is
+ // Returns the RenderWidgetHostView which has most recently updated its state,
+ // i.e., selection bonuds or TextInputState, with the TextInputManager that is
kenrb 2016/06/28 19:15:23 nit: typo 'bonuds'
EhsanK 2016/06/29 17:09:58 Done.
// being observed.
const RenderWidgetHostView* GetUpdatedView();

Powered by Google App Engine
This is Rietveld 408576698