OLD | NEW |
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 Loading... |
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 | |
684 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay(const WebString& s
cript) | 679 WebString WebDevToolsAgentImpl::evaluateInWebInspectorOverlay(const WebString& s
cript) |
685 { | 680 { |
686 if (!m_overlay) | 681 if (!m_overlay) |
687 return WebString(); | 682 return WebString(); |
688 | 683 |
689 return m_overlay->evaluateInOverlayForTest(script); | 684 return m_overlay->evaluateInOverlayForTest(script); |
690 } | 685 } |
691 | 686 |
692 void WebDevToolsAgentImpl::flushPendingProtocolNotifications() | 687 void WebDevToolsAgentImpl::flushPendingProtocolNotifications() |
693 { | 688 { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 if (!protocol::Dispatcher::getCommandName(message, &commandName)) | 734 if (!protocol::Dispatcher::getCommandName(message, &commandName)) |
740 return false; | 735 return false; |
741 return commandName == "Debugger.pause" | 736 return commandName == "Debugger.pause" |
742 || commandName == "Debugger.setBreakpoint" | 737 || commandName == "Debugger.setBreakpoint" |
743 || commandName == "Debugger.setBreakpointByUrl" | 738 || commandName == "Debugger.setBreakpointByUrl" |
744 || commandName == "Debugger.removeBreakpoint" | 739 || commandName == "Debugger.removeBreakpoint" |
745 || commandName == "Debugger.setBreakpointsActive"; | 740 || commandName == "Debugger.setBreakpointsActive"; |
746 } | 741 } |
747 | 742 |
748 } // namespace blink | 743 } // namespace blink |
OLD | NEW |