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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.cc

Issue 2731383002: [DevTools] Make touch emulation work with OOPIF. (Closed)
Patch Set: dialog fix to separate patch Created 3 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js » ('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/devtools/render_frame_devtools_agent_host.h" 5 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 } 509 }
510 510
511 WebContents* RenderFrameDevToolsAgentHost::GetWebContents() { 511 WebContents* RenderFrameDevToolsAgentHost::GetWebContents() {
512 return web_contents(); 512 return web_contents();
513 } 513 }
514 514
515 void RenderFrameDevToolsAgentHost::AttachSession(DevToolsSession* session) { 515 void RenderFrameDevToolsAgentHost::AttachSession(DevToolsSession* session) {
516 session->SetFallThroughForNotFound(true); 516 session->SetFallThroughForNotFound(true);
517 session->SetRenderFrameHost(handlers_frame_host_); 517 session->SetRenderFrameHost(handlers_frame_host_);
518 if (frame_tree_node_ && !frame_tree_node_->parent()) { 518 if (frame_tree_node_ && !frame_tree_node_->parent()) {
519 session->AddHandler(base::WrapUnique(new protocol::EmulationHandler()));
520 session->AddHandler(base::WrapUnique(new protocol::PageHandler())); 519 session->AddHandler(base::WrapUnique(new protocol::PageHandler()));
521 session->AddHandler(base::WrapUnique(new protocol::SecurityHandler())); 520 session->AddHandler(base::WrapUnique(new protocol::SecurityHandler()));
522 } 521 }
523 session->AddHandler(base::WrapUnique(new protocol::DOMHandler())); 522 session->AddHandler(base::WrapUnique(new protocol::DOMHandler()));
523 session->AddHandler(base::WrapUnique(new protocol::EmulationHandler()));
524 session->AddHandler(base::WrapUnique(new protocol::InputHandler())); 524 session->AddHandler(base::WrapUnique(new protocol::InputHandler()));
525 session->AddHandler(base::WrapUnique(new protocol::InspectorHandler())); 525 session->AddHandler(base::WrapUnique(new protocol::InspectorHandler()));
526 session->AddHandler(base::WrapUnique(new protocol::IOHandler( 526 session->AddHandler(base::WrapUnique(new protocol::IOHandler(
527 GetIOContext()))); 527 GetIOContext())));
528 session->AddHandler(base::WrapUnique(new protocol::NetworkHandler())); 528 session->AddHandler(base::WrapUnique(new protocol::NetworkHandler()));
529 session->AddHandler(base::WrapUnique(new protocol::SchemaHandler())); 529 session->AddHandler(base::WrapUnique(new protocol::SchemaHandler()));
530 session->AddHandler(base::WrapUnique(new protocol::ServiceWorkerHandler())); 530 session->AddHandler(base::WrapUnique(new protocol::ServiceWorkerHandler()));
531 session->AddHandler(base::WrapUnique(new protocol::StorageHandler())); 531 session->AddHandler(base::WrapUnique(new protocol::StorageHandler()));
532 session->AddHandler(base::WrapUnique(new protocol::TargetHandler())); 532 session->AddHandler(base::WrapUnique(new protocol::TargetHandler()));
533 session->AddHandler(base::WrapUnique(new protocol::TracingHandler( 533 session->AddHandler(base::WrapUnique(new protocol::TracingHandler(
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 RenderFrameHost* host) { 1178 RenderFrameHost* host) {
1179 return (current_ && current_->host() == host) || 1179 return (current_ && current_->host() == host) ||
1180 (pending_ && pending_->host() == host); 1180 (pending_ && pending_->host() == host);
1181 } 1181 }
1182 1182
1183 bool RenderFrameDevToolsAgentHost::IsChildFrame() { 1183 bool RenderFrameDevToolsAgentHost::IsChildFrame() {
1184 return current_ && current_->host()->GetParent(); 1184 return current_ && current_->host()->GetParent();
1185 } 1185 }
1186 1186
1187 } // namespace content 1187 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698