| 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 895f7b743d0bee0f76c7df4b0aa4641cdf921927..83b75a3fa3ad418fd2a1b44ee366fcd63fd322be 100644
|
| --- a/content/public/test/text_input_test_utils.cc
|
| +++ b/content/public/test/text_input_test_utils.cc
|
| @@ -199,6 +199,18 @@ bool GetTextInputTypeForView(WebContents* web_contents,
|
| return true;
|
| }
|
|
|
| +std::unordered_set<RenderWidgetHostView*>
|
| +GetAllViewsRegisteredWithTextInputManager(WebContents* web_contents) {
|
| + std::unordered_set<RenderWidgetHostView*> views;
|
| + TextInputManager* manager =
|
| + static_cast<WebContentsImpl*>(web_contents)->GetTextInputManager();
|
| + if (manager) {
|
| + for (auto pair : manager->text_input_state_map_)
|
| + views.insert(pair.first);
|
| + }
|
| + return views;
|
| +}
|
| +
|
| RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents) {
|
| return static_cast<WebContentsImpl*>(web_contents)
|
| ->GetTextInputManager()
|
|
|