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 |
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 Loading... |
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 |
OLD | NEW |