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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 } | 476 } |
477 | 477 |
478 void WebDevToolsAgentImpl::didCommitLoadForLocalFrame(LocalFrame* frame) | 478 void WebDevToolsAgentImpl::didCommitLoadForLocalFrame(LocalFrame* frame) |
479 { | 479 { |
480 m_resourceContainer->didCommitLoadForLocalFrame(frame); | 480 m_resourceContainer->didCommitLoadForLocalFrame(frame); |
481 m_resourceContentLoader->didCommitLoadForLocalFrame(frame); | 481 m_resourceContentLoader->didCommitLoadForLocalFrame(frame); |
482 if (m_session) | 482 if (m_session) |
483 m_session->didCommitLoadForLocalFrame(frame); | 483 m_session->didCommitLoadForLocalFrame(frame); |
484 } | 484 } |
485 | 485 |
| 486 void WebDevToolsAgentImpl::didStartProvisionalLoad(LocalFrame* frame) |
| 487 { |
| 488 if (m_session && m_inspectedFrames->root() == frame) |
| 489 m_session->v8Session()->resume(); |
| 490 } |
| 491 |
486 bool WebDevToolsAgentImpl::screencastEnabled() | 492 bool WebDevToolsAgentImpl::screencastEnabled() |
487 { | 493 { |
488 return m_pageAgent && m_pageAgent->screencastEnabled(); | 494 return m_pageAgent && m_pageAgent->screencastEnabled(); |
489 } | 495 } |
490 | 496 |
491 void WebDevToolsAgentImpl::willAddPageOverlay(const GraphicsLayer* layer) | 497 void WebDevToolsAgentImpl::willAddPageOverlay(const GraphicsLayer* layer) |
492 { | 498 { |
493 if (m_layerTreeAgent) | 499 if (m_layerTreeAgent) |
494 m_layerTreeAgent->willAddPageOverlay(layer); | 500 m_layerTreeAgent->willAddPageOverlay(layer); |
495 } | 501 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) | 677 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) |
672 { | 678 { |
673 return method == "Debugger.pause" | 679 return method == "Debugger.pause" |
674 || method == "Debugger.setBreakpoint" | 680 || method == "Debugger.setBreakpoint" |
675 || method == "Debugger.setBreakpointByUrl" | 681 || method == "Debugger.setBreakpointByUrl" |
676 || method == "Debugger.removeBreakpoint" | 682 || method == "Debugger.removeBreakpoint" |
677 || method == "Debugger.setBreakpointsActive"; | 683 || method == "Debugger.setBreakpointsActive"; |
678 } | 684 } |
679 | 685 |
680 } // namespace blink | 686 } // namespace blink |
OLD | NEW |