Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Missing Files and Fixed Some Errors Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698