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 784c9b481d5d1456494dd5ccb55fe60b1b45deea..62fd22e651bcc504dbca79defd6b25dfcec969dd 100644 |
--- a/content/browser/frame_host/interstitial_page_impl.cc |
+++ b/content/browser/frame_host/interstitial_page_impl.cc |
@@ -33,6 +33,7 @@ |
#include "content/browser/web_contents/web_contents_view.h" |
#include "content/common/frame_messages.h" |
#include "content/common/input_messages.h" |
+#include "content/common/text_input_state.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
@@ -171,6 +172,7 @@ InterstitialPageImpl::InterstitialPageImpl( |
create_view_(true), |
pause_throbber_(false), |
delegate_(delegate), |
+ text_input_state_(new TextInputState()), |
weak_ptr_factory_(this) { |
InitInterstitialPageMap(); |
} |
@@ -537,6 +539,19 @@ void InterstitialPageImpl::RenderWidgetDeleted( |
CHECK(!web_contents_); |
} |
+const TextInputState* InterstitialPageImpl::GetTextInputState() { |
+ return text_input_state_.get(); |
+} |
+ |
+void InterstitialPageImpl::UpdateTextInputState(RenderWidgetHostViewBase* rwhv, |
+ bool text_input_state_changed) { |
+ if (web_contents_) { |
+ WebContentsImpl* contents = static_cast<WebContentsImpl*>(web_contents_); |
+ contents->UpdateTextInputState(rwhv, text_input_state_changed); |
+ *text_input_state_ = *contents->GetTextInputState(); |
+ } |
+} |
+ |
bool InterstitialPageImpl::PreHandleKeyboardEvent( |
const NativeWebKeyboardEvent& event, |
bool* is_keyboard_shortcut) { |