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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 void InspectorInstrumentation::didDispatchEventImpl(const InspectorInstrumentati
onCookie& cookie) | 299 void InspectorInstrumentation::didDispatchEventImpl(const InspectorInstrumentati
onCookie& cookie) |
300 { | 300 { |
301 cancelPauseOnNativeEvent(cookie.first); | 301 cancelPauseOnNativeEvent(cookie.first); |
302 | 302 |
303 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie)) | 303 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie)) |
304 timelineAgent->didDispatchEvent(); | 304 timelineAgent->didDispatchEvent(); |
305 } | 305 } |
306 | 306 |
307 InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEventOnWind
owImpl(InstrumentingAgents* instrumentingAgents, const Event& event, DOMWindow*
window) | 307 InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEventOnWind
owImpl(InstrumentingAgents* instrumentingAgents, const Event& event, DOMWindow*
window) |
308 { | 308 { |
309 pauseOnNativeEventIfNeeded(instrumentingAgents, listenerEventCategoryType, e
vent.type(), false); | 309 pauseOnNativeEventIfNeeded(instrumentingAgents, true, event.type(), false); |
310 | 310 |
311 int timelineAgentId = 0; | 311 int timelineAgentId = 0; |
312 InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimeli
neAgent(); | 312 InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimeli
neAgent(); |
313 if (timelineAgent && window->hasEventListeners(event.type())) { | 313 if (timelineAgent && window->hasEventListeners(event.type())) { |
314 timelineAgent->willDispatchEvent(event); | 314 timelineAgent->willDispatchEvent(event); |
315 timelineAgentId = timelineAgent->id(); | 315 timelineAgentId = timelineAgent->id(); |
316 } | 316 } |
317 return InspectorInstrumentationCookie(instrumentingAgents, timelineAgentId); | 317 return InspectorInstrumentationCookie(instrumentingAgents, timelineAgentId); |
318 } | 318 } |
319 | 319 |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 if (!workerContext) | 1031 if (!workerContext) |
1032 return 0; | 1032 return 0; |
1033 return instrumentationForWorkerContext(workerContext); | 1033 return instrumentationForWorkerContext(workerContext); |
1034 } | 1034 } |
1035 #endif | 1035 #endif |
1036 | 1036 |
1037 } // namespace WebCore | 1037 } // namespace WebCore |
1038 | 1038 |
1039 #endif // !ENABLE(INSPECTOR) | 1039 #endif // !ENABLE(INSPECTOR) |
1040 | 1040 |
OLD | NEW |