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

Side by Side Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2859273002: [DevTools] Do not talk to inspector overlay from outside (Closed)
Patch Set: Created 3 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 /* 1 /*
2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 } 577 }
578 578
579 WebString WebDevToolsAgentImpl::EvaluateInWebInspectorOverlay( 579 WebString WebDevToolsAgentImpl::EvaluateInWebInspectorOverlay(
580 const WebString& script) { 580 const WebString& script) {
581 if (!overlay_agent_) 581 if (!overlay_agent_)
582 return WebString(); 582 return WebString();
583 583
584 return overlay_agent_->EvaluateInOverlayForTest(script); 584 return overlay_agent_->EvaluateInOverlayForTest(script);
585 } 585 }
586 586
587 void WebDevToolsAgentImpl::PaintOverlay() {
588 if (overlay_agent_)
589 overlay_agent_->PaintOverlay();
590 }
591
592 void WebDevToolsAgentImpl::LayoutOverlay() {
593 if (overlay_agent_)
594 overlay_agent_->LayoutOverlay();
595 }
596
597 bool WebDevToolsAgentImpl::HandleInputEvent(const WebInputEvent& event) {
598 if (overlay_agent_)
599 return overlay_agent_->HandleInputEvent(event);
600 return false;
601 }
602
587 bool WebDevToolsAgentImpl::CacheDisabled() { 603 bool WebDevToolsAgentImpl::CacheDisabled() {
588 if (!network_agent_) 604 if (!network_agent_)
589 return false; 605 return false;
590 return network_agent_->CacheDisabled(); 606 return network_agent_->CacheDisabled();
591 } 607 }
592 608
593 void WebDevToolsAgentImpl::FlushProtocolNotifications() { 609 void WebDevToolsAgentImpl::FlushProtocolNotifications() {
594 if (session_) 610 if (session_)
595 session_->flushProtocolNotifications(); 611 session_->flushProtocolNotifications();
596 } 612 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 648 }
633 649
634 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { 650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) {
635 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || 651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" ||
636 method == "Debugger.setBreakpointByUrl" || 652 method == "Debugger.setBreakpointByUrl" ||
637 method == "Debugger.removeBreakpoint" || 653 method == "Debugger.removeBreakpoint" ||
638 method == "Debugger.setBreakpointsActive"; 654 method == "Debugger.setBreakpointsActive";
639 } 655 }
640 656
641 } // namespace blink 657 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698