OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 void InspectorDOMDebuggerAgent::didRemoveTimer(ExecutionContext*, int) | 519 void InspectorDOMDebuggerAgent::didRemoveTimer(ExecutionContext*, int) |
520 { | 520 { |
521 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(clearTimerEventName
, 0), true); | 521 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(clearTimerEventName
, 0), true); |
522 } | 522 } |
523 | 523 |
524 void InspectorDOMDebuggerAgent::willFireTimer(ExecutionContext*, int) | 524 void InspectorDOMDebuggerAgent::willFireTimer(ExecutionContext*, int) |
525 { | 525 { |
526 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(timerFiredEventName
, 0), false); | 526 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(timerFiredEventName
, 0), false); |
527 } | 527 } |
528 | 528 |
| 529 void InspectorDOMDebuggerAgent::didFireTimer() |
| 530 { |
| 531 m_debuggerAgent->cancelPauseOnNextStatement(); |
| 532 } |
| 533 |
529 void InspectorDOMDebuggerAgent::didRequestAnimationFrame(ExecutionContext*, int) | 534 void InspectorDOMDebuggerAgent::didRequestAnimationFrame(ExecutionContext*, int) |
530 { | 535 { |
531 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(requestAnimationFra
meEventName, 0), true); | 536 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(requestAnimationFra
meEventName, 0), true); |
532 } | 537 } |
533 | 538 |
534 void InspectorDOMDebuggerAgent::didCancelAnimationFrame(ExecutionContext*, int) | 539 void InspectorDOMDebuggerAgent::didCancelAnimationFrame(ExecutionContext*, int) |
535 { | 540 { |
536 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(cancelAnimationFram
eEventName, 0), true); | 541 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(cancelAnimationFram
eEventName, 0), true); |
537 } | 542 } |
538 | 543 |
539 void InspectorDOMDebuggerAgent::willFireAnimationFrame(ExecutionContext*, int) | 544 void InspectorDOMDebuggerAgent::willFireAnimationFrame(ExecutionContext*, int) |
540 { | 545 { |
541 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired
EventName, 0), false); | 546 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(animationFrameFired
EventName, 0), false); |
542 } | 547 } |
543 | 548 |
544 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even
t, EventListener*, bool) | 549 void InspectorDOMDebuggerAgent::willHandleEvent(EventTarget* target, Event* even
t, EventListener*, bool) |
545 { | 550 { |
546 Node* node = target->toNode(); | 551 Node* node = target->toNode(); |
547 String targetName = node ? node->nodeName() : target->interfaceName(); | 552 String targetName = node ? node->nodeName() : target->interfaceName(); |
548 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar
getName), false); | 553 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(event->type(), &tar
getName), false); |
549 } | 554 } |
550 | 555 |
| 556 void InspectorDOMDebuggerAgent::didHandleEvent() |
| 557 { |
| 558 m_debuggerAgent->cancelPauseOnNextStatement(); |
| 559 } |
| 560 |
551 void InspectorDOMDebuggerAgent::willEvaluateScript() | 561 void InspectorDOMDebuggerAgent::willEvaluateScript() |
552 { | 562 { |
553 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(scriptFirstStatemen
tEventName, 0), false); | 563 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(scriptFirstStatemen
tEventName, 0), false); |
554 } | 564 } |
555 | 565 |
556 void InspectorDOMDebuggerAgent::willCloseWindow() | 566 void InspectorDOMDebuggerAgent::willCloseWindow() |
557 { | 567 { |
558 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(windowCloseEventNam
e, 0), true); | 568 pauseOnNativeEventIfNeeded(preparePauseOnNativeEventData(windowCloseEventNam
e, 0), true); |
559 } | 569 } |
560 | 570 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 if (enabled) { | 671 if (enabled) { |
662 m_instrumentingAgents->setInspectorDOMDebuggerAgent(this); | 672 m_instrumentingAgents->setInspectorDOMDebuggerAgent(this); |
663 m_state->setBoolean(DOMDebuggerAgentState::enabled, true); | 673 m_state->setBoolean(DOMDebuggerAgentState::enabled, true); |
664 } else { | 674 } else { |
665 m_state->remove(DOMDebuggerAgentState::enabled); | 675 m_state->remove(DOMDebuggerAgentState::enabled); |
666 m_instrumentingAgents->setInspectorDOMDebuggerAgent(nullptr); | 676 m_instrumentingAgents->setInspectorDOMDebuggerAgent(nullptr); |
667 } | 677 } |
668 } | 678 } |
669 | 679 |
670 } // namespace blink | 680 } // namespace blink |
OLD | NEW |