Index: content/browser/frame_host/interstitial_page_impl.cc |
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc |
index 25a218fbd14b5837d606350c830643e8dcb7ed38..e0642a51bb782ea2277344e7ca176b63c10ecd64 100644 |
--- a/content/browser/frame_host/interstitial_page_impl.cc |
+++ b/content/browser/frame_host/interstitial_page_impl.cc |
@@ -29,6 +29,7 @@ |
#include "content/browser/renderer_host/render_view_host_factory.h" |
#include "content/browser/renderer_host/render_view_host_impl.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
+#include "content/browser/renderer_host/text_input_manager.h" |
#include "content/browser/site_instance_impl.h" |
#include "content/browser/web_contents/web_contents_impl.h" |
#include "content/browser/web_contents/web_contents_view.h" |
@@ -931,4 +932,18 @@ void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
interstitial_->OnNavigatingAwayOrTabClosing(); |
} |
+TextInputManager* InterstitialPageImpl::GetTextInputManager() { |
kenrb
2016/05/05 20:26:28
Does this method get called? I don't quite underst
EhsanK
2016/05/06 18:23:43
Clicking on the page will cause a TextInputStateCh
kenrb
2016/05/12 16:16:36
Well, it isn't a good thing to create an object th
EhsanK
2016/05/13 16:00:55
Makes sense. I don't think it does need a lot of w
|
+ if (GetWebContents()) { |
+ if (text_input_manager_) |
+ text_input_manager_.reset(nullptr); |
+ |
+ return static_cast<WebContentsImpl*>(web_contents_)->GetTextInputManager(); |
+ } |
+ |
+ if (!text_input_manager_) |
+ text_input_manager_.reset(new TextInputManager()); |
+ |
+ return text_input_manager_.get(); |
+} |
+ |
} // namespace content |