Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: Source/WebCore/inspector/InspectorInstrumentation.cpp

Issue 9429046: Merge 106347 - Web Inspector: DOMDebugger.setEventListenerBreakpoint should accept regular DOM even… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698