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

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

Issue 1828983002: Revert of [DevTools] Use InspectorFrontendHost.readyForTest for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ready-for-test
Patch Set: Created 4 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
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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 669 }
670 670
671 void WebDevToolsAgentImpl::waitForCreateWindow(LocalFrame* frame) 671 void WebDevToolsAgentImpl::waitForCreateWindow(LocalFrame* frame)
672 { 672 {
673 if (!m_attached) 673 if (!m_attached)
674 return; 674 return;
675 if (m_client->requestDevToolsForFrame(WebLocalFrameImpl::fromFrame(frame))) 675 if (m_client->requestDevToolsForFrame(WebLocalFrameImpl::fromFrame(frame)))
676 ClientMessageLoopAdapter::pauseForCreateWindow(m_webLocalFrameImpl); 676 ClientMessageLoopAdapter::pauseForCreateWindow(m_webLocalFrameImpl);
677 } 677 }
678 678
679 void WebDevToolsAgentImpl::evaluateInWebInspector(long callId, const WebString& script)
680 {
681 m_inspectorAgent->evaluateForTestInFrontend(callId, script);
682 }
683
679 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay(const WebString& s cript) 684 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay(const WebString& s cript)
680 { 685 {
681 if (!m_overlay) 686 if (!m_overlay)
682 return WebString(); 687 return WebString();
683 688
684 return m_overlay->evaluateInOverlayForTest(script); 689 return m_overlay->evaluateInOverlayForTest(script);
685 } 690 }
686 691
687 void WebDevToolsAgentImpl::flushPendingProtocolNotifications() 692 void WebDevToolsAgentImpl::flushPendingProtocolNotifications()
688 { 693 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 if (!protocol::Dispatcher::getCommandName(message, &commandName)) 739 if (!protocol::Dispatcher::getCommandName(message, &commandName))
735 return false; 740 return false;
736 return commandName == "Debugger.pause" 741 return commandName == "Debugger.pause"
737 || commandName == "Debugger.setBreakpoint" 742 || commandName == "Debugger.setBreakpoint"
738 || commandName == "Debugger.setBreakpointByUrl" 743 || commandName == "Debugger.setBreakpointByUrl"
739 || commandName == "Debugger.removeBreakpoint" 744 || commandName == "Debugger.removeBreakpoint"
740 || commandName == "Debugger.setBreakpointsActive"; 745 || commandName == "Debugger.setBreakpointsActive";
741 } 746 }
742 747
743 } // namespace blink 748 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.h ('k') | third_party/WebKit/public/web/WebDevToolsAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698