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

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

Issue 1948343002: [reland] Browser Side Text Input State Tracking for OOPIF (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 11 matching lines...) Expand all
22 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 22 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
23 #include "content/browser/frame_host/interstitial_page_navigator_impl.h" 23 #include "content/browser/frame_host/interstitial_page_navigator_impl.h"
24 #include "content/browser/frame_host/navigation_controller_impl.h" 24 #include "content/browser/frame_host/navigation_controller_impl.h"
25 #include "content/browser/frame_host/navigation_entry_impl.h" 25 #include "content/browser/frame_host/navigation_entry_impl.h"
26 #include "content/browser/loader/resource_dispatcher_host_impl.h" 26 #include "content/browser/loader/resource_dispatcher_host_impl.h"
27 #include "content/browser/renderer_host/render_process_host_impl.h" 27 #include "content/browser/renderer_host/render_process_host_impl.h"
28 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 28 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
29 #include "content/browser/renderer_host/render_view_host_factory.h" 29 #include "content/browser/renderer_host/render_view_host_factory.h"
30 #include "content/browser/renderer_host/render_view_host_impl.h" 30 #include "content/browser/renderer_host/render_view_host_impl.h"
31 #include "content/browser/renderer_host/render_widget_host_view_base.h" 31 #include "content/browser/renderer_host/render_widget_host_view_base.h"
32 #include "content/browser/renderer_host/text_input_manager.h"
32 #include "content/browser/site_instance_impl.h" 33 #include "content/browser/site_instance_impl.h"
33 #include "content/browser/web_contents/web_contents_impl.h" 34 #include "content/browser/web_contents/web_contents_impl.h"
34 #include "content/browser/web_contents/web_contents_view.h" 35 #include "content/browser/web_contents/web_contents_view.h"
35 #include "content/common/frame_messages.h" 36 #include "content/common/frame_messages.h"
36 #include "content/common/input_messages.h" 37 #include "content/common/input_messages.h"
37 #include "content/common/view_messages.h" 38 #include "content/common/view_messages.h"
38 #include "content/public/browser/browser_context.h" 39 #include "content/public/browser/browser_context.h"
39 #include "content/public/browser/browser_thread.h" 40 #include "content/public/browser/browser_thread.h"
40 #include "content/public/browser/content_browser_client.h" 41 #include "content/public/browser/content_browser_client.h"
41 #include "content/public/browser/interstitial_page_delegate.h" 42 #include "content/public/browser/interstitial_page_delegate.h"
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 925
925 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( 926 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted(
926 const LoadCommittedDetails& load_details) { 927 const LoadCommittedDetails& load_details) {
927 interstitial_->OnNavigatingAwayOrTabClosing(); 928 interstitial_->OnNavigatingAwayOrTabClosing();
928 } 929 }
929 930
930 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { 931 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() {
931 interstitial_->OnNavigatingAwayOrTabClosing(); 932 interstitial_->OnNavigatingAwayOrTabClosing();
932 } 933 }
933 934
935 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
936 if (GetWebContents()) {
937 if (text_input_manager_)
938 text_input_manager_.reset(nullptr);
939
940 return static_cast<WebContentsImpl*>(web_contents_)->GetTextInputManager();
941 }
942
943 if (!text_input_manager_)
944 text_input_manager_.reset(new TextInputManager());
945
946 return text_input_manager_.get();
947 }
948
934 } // namespace content 949 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698