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

Side by Side Diff: Source/core/frame/DOMWindow.cpp

Issue 239303003: Add devtools trace event for event dispatching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/events/EventDispatcher.cpp ('k') | 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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 { 1597 {
1598 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden()); 1598 ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden());
1599 1599
1600 RefPtr<EventTarget> protect = this; 1600 RefPtr<EventTarget> protect = this;
1601 RefPtrWillBeRawPtr<Event> event = prpEvent; 1601 RefPtrWillBeRawPtr<Event> event = prpEvent;
1602 1602
1603 event->setTarget(prpTarget ? prpTarget : this); 1603 event->setTarget(prpTarget ? prpTarget : this);
1604 event->setCurrentTarget(this); 1604 event->setCurrentTarget(this);
1605 event->setEventPhase(Event::AT_TARGET); 1605 event->setEventPhase(Event::AT_TARGET);
1606 1606
1607 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools-timeline"), "DOMWindow::dis patchEvent", "type", event->type().ascii());
1608 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Timeli ne migrates to tracing.
1607 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willDispat chEventOnWindow(frame(), *event, this); 1609 InspectorInstrumentationCookie cookie = InspectorInstrumentation::willDispat chEventOnWindow(frame(), *event, this);
1608 1610
1609 bool result = fireEventListeners(event.get()); 1611 bool result = fireEventListeners(event.get());
1610 1612
1611 InspectorInstrumentation::didDispatchEventOnWindow(cookie); 1613 InspectorInstrumentation::didDispatchEventOnWindow(cookie);
1612 1614
1613 return result; 1615 return result;
1614 } 1616 }
1615 1617
1616 void DOMWindow::removeAllEventListeners() 1618 void DOMWindow::removeAllEventListeners()
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 visitor->trace(m_media); 1888 visitor->trace(m_media);
1887 visitor->trace(m_sessionStorage); 1889 visitor->trace(m_sessionStorage);
1888 visitor->trace(m_localStorage); 1890 visitor->trace(m_localStorage);
1889 visitor->trace(m_applicationCache); 1891 visitor->trace(m_applicationCache);
1890 visitor->trace(m_performance); 1892 visitor->trace(m_performance);
1891 visitor->trace(m_css); 1893 visitor->trace(m_css);
1892 WillBeHeapSupplementable<DOMWindow>::trace(visitor); 1894 WillBeHeapSupplementable<DOMWindow>::trace(visitor);
1893 } 1895 }
1894 1896
1895 } // namespace WebCore 1897 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/events/EventDispatcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698