Chromium Code Reviews| 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 92be4ae87b1d597854953b7c9aead9ef86219700..5c318fa18f67b386395b2c0e4b5fc64d2d76f62e 100644 |
| --- a/content/public/test/text_input_test_utils.h |
| +++ b/content/public/test/text_input_test_utils.h |
| @@ -42,7 +42,7 @@ RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents); |
| // observing the TextInputManager for WebContents. |
| class TextInputManagerTester { |
| public: |
| - using Callback = base::Callback<void(TextInputManagerTester*)>; |
| + using Callback = base::Closure; |
|
sky
2016/07/01 00:03:49
nit: this using is a bit overkill now, just use ba
EhsanK
2016/07/01 00:29:57
Acknowledged.
|
| TextInputManagerTester(WebContents* web_contents); |
| virtual ~TextInputManagerTester(); |
| @@ -51,6 +51,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); |
| @@ -63,9 +67,8 @@ class TextInputManagerTester { |
| // if none exists. |
| const RenderWidgetHostView* GetActiveView(); |
| - // Returns the RenderWidgetHostView which has most recently called |
| - // TextInputManager::UpdateTextInputState on the TextInputManager which is |
| - // being observed. |
| + // Returns the RenderWidgetHostView which has most recently updated any of its |
| + // state (e.g., TextInputState or otherwise). |
| const RenderWidgetHostView* GetUpdatedView(); |
| // Returns true if a call to TextInputManager::UpdateTextInputState has led |