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

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: 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
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 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 const LoadCommittedDetails& load_details) { 2799 const LoadCommittedDetails& load_details) {
2800 FOR_EACH_OBSERVER( 2800 FOR_EACH_OBSERVER(
2801 WebContentsObserver, observers_, NavigationEntryCommitted(load_details)); 2801 WebContentsObserver, observers_, NavigationEntryCommitted(load_details));
2802 } 2802 }
2803 2803
2804 bool WebContentsImpl::OnMessageReceived(RenderFrameHost* render_frame_host, 2804 bool WebContentsImpl::OnMessageReceived(RenderFrameHost* render_frame_host,
2805 const IPC::Message& message) { 2805 const IPC::Message& message) {
2806 return OnMessageReceived(NULL, render_frame_host, message); 2806 return OnMessageReceived(NULL, render_frame_host, message);
2807 } 2807 }
2808 2808
2809 const GURL& WebContentsImpl::GetMainFrameVisibleURL() const {
2810 return GetVisibleURL();
2811 }
2812
2809 void WebContentsImpl::RenderFrameCreated(RenderFrameHost* render_frame_host) { 2813 void WebContentsImpl::RenderFrameCreated(RenderFrameHost* render_frame_host) {
2810 // Note this is only for subframes, the notification for the main frame 2814 // Note this is only for subframes, the notification for the main frame
2811 // happens in RenderViewCreated. 2815 // happens in RenderViewCreated.
2812 FOR_EACH_OBSERVER(WebContentsObserver, 2816 FOR_EACH_OBSERVER(WebContentsObserver,
2813 observers_, 2817 observers_,
2814 RenderFrameCreated(render_frame_host)); 2818 RenderFrameCreated(render_frame_host));
2815 } 2819 }
2816 2820
2817 void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) { 2821 void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) {
2818 FOR_EACH_OBSERVER(WebContentsObserver, 2822 FOR_EACH_OBSERVER(WebContentsObserver,
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 3675
3672 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 3676 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
3673 if (!delegate_) 3677 if (!delegate_)
3674 return; 3678 return;
3675 const gfx::Size new_size = GetPreferredSize(); 3679 const gfx::Size new_size = GetPreferredSize();
3676 if (new_size != old_size) 3680 if (new_size != old_size)
3677 delegate_->UpdatePreferredSize(this, new_size); 3681 delegate_->UpdatePreferredSize(this, new_size);
3678 } 3682 }
3679 3683
3680 } // namespace content 3684 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698