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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1804613003: Remove unused method WebContents::CreateSwappedOutRenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after
4359 bool WebContentsImpl::AddMessageToConsole(int32_t level, 4359 bool WebContentsImpl::AddMessageToConsole(int32_t level,
4360 const base::string16& message, 4360 const base::string16& message,
4361 int32_t line_no, 4361 int32_t line_no,
4362 const base::string16& source_id) { 4362 const base::string16& source_id) {
4363 if (!delegate_) 4363 if (!delegate_)
4364 return false; 4364 return false;
4365 return delegate_->AddMessageToConsole(this, level, message, line_no, 4365 return delegate_->AddMessageToConsole(this, level, message, line_no,
4366 source_id); 4366 source_id);
4367 } 4367 }
4368 4368
4369 int WebContentsImpl::CreateSwappedOutRenderView(
4370 SiteInstance* instance) {
4371 int render_view_routing_id = MSG_ROUTING_NONE;
4372 GetRenderManager()->CreateRenderFrameProxy(instance);
4373 return render_view_routing_id;
4374 }
4375
4376 void WebContentsImpl::OnUserInteraction( 4369 void WebContentsImpl::OnUserInteraction(
4377 RenderWidgetHostImpl* render_widget_host, 4370 RenderWidgetHostImpl* render_widget_host,
4378 const blink::WebInputEvent::Type type) { 4371 const blink::WebInputEvent::Type type) {
4379 // Ignore when the renderer is swapped out. 4372 // Ignore when the renderer is swapped out.
4380 // TODO(dominickn,creis): support widgets for out-of-process iframes. 4373 // TODO(dominickn,creis): support widgets for out-of-process iframes.
4381 if (render_widget_host != GetRenderViewHost()->GetWidget()) 4374 if (render_widget_host != GetRenderViewHost()->GetWidget())
4382 return; 4375 return;
4383 4376
4384 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 4377 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
4385 DidGetUserInteraction(type)); 4378 DidGetUserInteraction(type));
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
4846 else 4839 else
4847 WasHidden(); 4840 WasHidden();
4848 } 4841 }
4849 4842
4850 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 4843 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
4851 JavaScriptDialogManager* dialog_manager) { 4844 JavaScriptDialogManager* dialog_manager) {
4852 dialog_manager_ = dialog_manager; 4845 dialog_manager_ = dialog_manager;
4853 } 4846 }
4854 4847
4855 } // namespace content 4848 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698