OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/frame_host/interstitial_page_impl.h" | 5 #include "content/browser/frame_host/interstitial_page_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 delegate_->OverrideRendererPrefs(&renderer_preferences_); | 530 delegate_->OverrideRendererPrefs(&renderer_preferences_); |
531 return renderer_preferences_; | 531 return renderer_preferences_; |
532 } | 532 } |
533 | 533 |
534 void InterstitialPageImpl::RenderWidgetDeleted( | 534 void InterstitialPageImpl::RenderWidgetDeleted( |
535 RenderWidgetHostImpl* render_widget_host) { | 535 RenderWidgetHostImpl* render_widget_host) { |
536 // TODO(creis): Remove this method once we verify the shutdown path is sane. | 536 // TODO(creis): Remove this method once we verify the shutdown path is sane. |
537 CHECK(!web_contents_); | 537 CHECK(!web_contents_); |
538 } | 538 } |
539 | 539 |
| 540 TextInputState InterstitialPageImpl::GetTextInputState() { |
| 541 if (web_contents_) |
| 542 return static_cast<WebContentsImpl*>(web_contents_)->GetTextInputState(); |
| 543 return TextInputState(); |
| 544 } |
| 545 |
| 546 void InterstitialPageImpl::UpdateTextInputState(RenderWidgetHostViewBase* rwhv, |
| 547 bool text_input_state_changed) { |
| 548 if (web_contents_) { |
| 549 static_cast<WebContentsImpl*>(web_contents_) |
| 550 ->UpdateTextInputState(rwhv, text_input_state_changed); |
| 551 } |
| 552 } |
| 553 |
540 bool InterstitialPageImpl::PreHandleKeyboardEvent( | 554 bool InterstitialPageImpl::PreHandleKeyboardEvent( |
541 const NativeWebKeyboardEvent& event, | 555 const NativeWebKeyboardEvent& event, |
542 bool* is_keyboard_shortcut) { | 556 bool* is_keyboard_shortcut) { |
543 if (!enabled()) | 557 if (!enabled()) |
544 return false; | 558 return false; |
545 return render_widget_host_delegate_->PreHandleKeyboardEvent( | 559 return render_widget_host_delegate_->PreHandleKeyboardEvent( |
546 event, is_keyboard_shortcut); | 560 event, is_keyboard_shortcut); |
547 } | 561 } |
548 | 562 |
549 void InterstitialPageImpl::HandleKeyboardEvent( | 563 void InterstitialPageImpl::HandleKeyboardEvent( |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 938 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
925 const LoadCommittedDetails& load_details) { | 939 const LoadCommittedDetails& load_details) { |
926 interstitial_->OnNavigatingAwayOrTabClosing(); | 940 interstitial_->OnNavigatingAwayOrTabClosing(); |
927 } | 941 } |
928 | 942 |
929 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 943 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
930 interstitial_->OnNavigatingAwayOrTabClosing(); | 944 interstitial_->OnNavigatingAwayOrTabClosing(); |
931 } | 945 } |
932 | 946 |
933 } // namespace content | 947 } // namespace content |
OLD | NEW |