| Index: content/public/test/text_input_test_utils.cc
|
| diff --git a/content/public/test/text_input_test_utils.cc b/content/public/test/text_input_test_utils.cc
|
| index e3282b49f2a2677f443018e9cb12365f7ddbc5b9..50dcccf1ee432800bfbbb57071bd0ac3471bd125 100644
|
| --- a/content/public/test/text_input_test_utils.cc
|
| +++ b/content/public/test/text_input_test_utils.cc
|
| @@ -196,10 +196,18 @@ bool GetTextInputTypeForView(WebContents* web_contents,
|
| if (!manager || !manager->IsRegistered(view_base))
|
| return false;
|
|
|
| - *type = manager->text_input_state_map_[view_base].type;
|
| + *type = manager->GetTextInputTypeForViewForTesting(view_base);
|
| +
|
| return true;
|
| }
|
|
|
| +size_t GetRegisteredViewsCountFromTextInputManager(WebContents* web_contents) {
|
| + std::unordered_set<RenderWidgetHostView*> views;
|
| + TextInputManager* manager =
|
| + static_cast<WebContentsImpl*>(web_contents)->GetTextInputManager();
|
| + return !!manager ? manager->GetRegisteredViewsCountForTesting() : 0;
|
| +}
|
| +
|
| RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents) {
|
| return static_cast<WebContentsImpl*>(web_contents)
|
| ->GetTextInputManager()
|
|
|