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

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

Issue 217183004: Migrate addMessageToConsole API to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix the test_runner Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 const LoadCommittedDetails& load_details) { 2817 const LoadCommittedDetails& load_details) {
2818 FOR_EACH_OBSERVER( 2818 FOR_EACH_OBSERVER(
2819 WebContentsObserver, observers_, NavigationEntryCommitted(load_details)); 2819 WebContentsObserver, observers_, NavigationEntryCommitted(load_details));
2820 } 2820 }
2821 2821
2822 bool WebContentsImpl::OnMessageReceived(RenderFrameHost* render_frame_host, 2822 bool WebContentsImpl::OnMessageReceived(RenderFrameHost* render_frame_host,
2823 const IPC::Message& message) { 2823 const IPC::Message& message) {
2824 return OnMessageReceived(NULL, render_frame_host, message); 2824 return OnMessageReceived(NULL, render_frame_host, message);
2825 } 2825 }
2826 2826
2827 const GURL& WebContentsImpl::GetMainFrameLastCommittedURL() const {
2828 return GetLastCommittedURL();
2829 }
2830
2827 void WebContentsImpl::RenderFrameCreated(RenderFrameHost* render_frame_host) { 2831 void WebContentsImpl::RenderFrameCreated(RenderFrameHost* render_frame_host) {
2828 // Note this is only for subframes, the notification for the main frame 2832 // Note this is only for subframes, the notification for the main frame
2829 // happens in RenderViewCreated. 2833 // happens in RenderViewCreated.
2830 FOR_EACH_OBSERVER(WebContentsObserver, 2834 FOR_EACH_OBSERVER(WebContentsObserver,
2831 observers_, 2835 observers_,
2832 RenderFrameCreated(render_frame_host)); 2836 RenderFrameCreated(render_frame_host));
2833 } 2837 }
2834 2838
2835 void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) { 2839 void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) {
2836 FOR_EACH_OBSERVER(WebContentsObserver, 2840 FOR_EACH_OBSERVER(WebContentsObserver,
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
3678 3682
3679 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 3683 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
3680 if (!delegate_) 3684 if (!delegate_)
3681 return; 3685 return;
3682 const gfx::Size new_size = GetPreferredSize(); 3686 const gfx::Size new_size = GetPreferredSize();
3683 if (new_size != old_size) 3687 if (new_size != old_size)
3684 delegate_->UpdatePreferredSize(this, new_size); 3688 delegate_->UpdatePreferredSize(this, new_size);
3685 } 3689 }
3686 3690
3687 } // namespace content 3691 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698