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

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

Issue 251653003: Introduces DevToolsManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add InspectWorker() to WebContents, WebContentsImpl, WebContentsDelegate and Browser. Created 6 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 (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 3863 matching lines...) Expand 10 before | Expand all | Expand 10 after
3874 view_->SetOverlayView(static_cast<WebContentsImpl*>(overlay)->GetView(), 3874 view_->SetOverlayView(static_cast<WebContentsImpl*>(overlay)->GetView(),
3875 offset); 3875 offset);
3876 } 3876 }
3877 3877
3878 void WebContentsImpl::RemoveOverlayView() { 3878 void WebContentsImpl::RemoveOverlayView() {
3879 view_->RemoveOverlayView(); 3879 view_->RemoveOverlayView();
3880 } 3880 }
3881 3881
3882 #endif 3882 #endif
3883 3883
3884 void WebContentsImpl::InspectWorker(DevToolsAgentHost* agent_host) {
3885 if (delegate_)
3886 delegate_->InspectWorker(agent_host);
3887 }
3888
3884 void WebContentsImpl::OnDialogClosed(int render_process_id, 3889 void WebContentsImpl::OnDialogClosed(int render_process_id,
3885 int render_frame_id, 3890 int render_frame_id,
3886 IPC::Message* reply_msg, 3891 IPC::Message* reply_msg,
3887 bool dialog_was_suppressed, 3892 bool dialog_was_suppressed,
3888 bool success, 3893 bool success,
3889 const base::string16& user_input) { 3894 const base::string16& user_input) {
3890 RenderFrameHostImpl* rfh = RenderFrameHostImpl::FromID(render_process_id, 3895 RenderFrameHostImpl* rfh = RenderFrameHostImpl::FromID(render_process_id,
3891 render_frame_id); 3896 render_frame_id);
3892 last_dialog_suppressed_ = dialog_was_suppressed; 3897 last_dialog_suppressed_ = dialog_was_suppressed;
3893 3898
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 3985
3981 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 3986 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
3982 if (!delegate_) 3987 if (!delegate_)
3983 return; 3988 return;
3984 const gfx::Size new_size = GetPreferredSize(); 3989 const gfx::Size new_size = GetPreferredSize();
3985 if (new_size != old_size) 3990 if (new_size != old_size)
3986 delegate_->UpdatePreferredSize(this, new_size); 3991 delegate_->UpdatePreferredSize(this, new_size);
3987 } 3992 }
3988 3993
3989 } // namespace content 3994 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698