OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); | 707 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); |
708 return true; | 708 return true; |
709 } | 709 } |
710 | 710 |
711 void InspectorDebuggerAgent::didFireAnimationFrame() | 711 void InspectorDebuggerAgent::didFireAnimationFrame() |
712 { | 712 { |
713 if (m_asyncCallStackTracker.isEnabled()) | 713 if (m_asyncCallStackTracker.isEnabled()) |
714 m_asyncCallStackTracker.didFireAsyncCall(); | 714 m_asyncCallStackTracker.didFireAsyncCall(); |
715 } | 715 } |
716 | 716 |
717 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, const Ato
micString& eventType, EventListener* listener, bool useCapture) | 717 void InspectorDebuggerAgent::didEnqueueEvent(EventTarget* eventTarget, Event* ev
ent) |
718 { | 718 { |
719 if (m_asyncCallStackTracker.isEnabled()) | 719 if (m_asyncCallStackTracker.isEnabled()) |
720 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); | 720 m_asyncCallStackTracker.didEnqueueEvent(eventTarget, event, scriptDebugS
erver().currentCallFramesForAsyncStack()); |
| 721 } |
| 722 |
| 723 void InspectorDebuggerAgent::didDispatchEvent(EventTarget* eventTarget, Event* e
vent) |
| 724 { |
| 725 if (m_asyncCallStackTracker.isEnabled()) |
| 726 m_asyncCallStackTracker.didDispatchEvent(eventTarget, event); |
| 727 } |
| 728 |
| 729 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, Event* ev
ent, EventListener* listener, bool useCapture) |
| 730 { |
| 731 if (m_asyncCallStackTracker.isEnabled()) |
| 732 m_asyncCallStackTracker.willHandleEvent(eventTarget, event, listener, us
eCapture); |
721 } | 733 } |
722 | 734 |
723 void InspectorDebuggerAgent::didHandleEvent() | 735 void InspectorDebuggerAgent::didHandleEvent() |
724 { | 736 { |
725 if (m_asyncCallStackTracker.isEnabled()) | 737 if (m_asyncCallStackTracker.isEnabled()) |
726 m_asyncCallStackTracker.didFireAsyncCall(); | 738 m_asyncCallStackTracker.didFireAsyncCall(); |
727 cancelPauseOnNextStatement(); | 739 cancelPauseOnNextStatement(); |
728 } | 740 } |
729 | 741 |
730 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, FormData*, const HTTPHeader
Map&, bool) | 742 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient*, const AtomicString&, const KURL&, bool async, FormData*, const HTTPHeader
Map&, bool) |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 { | 1277 { |
1266 m_scripts.clear(); | 1278 m_scripts.clear(); |
1267 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1279 m_breakpointIdToDebugServerBreakpointIds.clear(); |
1268 m_asyncCallStackTracker.clear(); | 1280 m_asyncCallStackTracker.clear(); |
1269 if (m_frontend) | 1281 if (m_frontend) |
1270 m_frontend->globalObjectCleared(); | 1282 m_frontend->globalObjectCleared(); |
1271 } | 1283 } |
1272 | 1284 |
1273 } // namespace WebCore | 1285 } // namespace WebCore |
1274 | 1286 |
OLD | NEW |