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

Side by Side Diff: third_party/WebKit/Source/core/events/EventDispatcher.cpp

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 21 matching lines...) Expand all
32 #include "core/events/MouseEvent.h" 32 #include "core/events/MouseEvent.h"
33 #include "core/events/ScopedEventQueue.h" 33 #include "core/events/ScopedEventQueue.h"
34 #include "core/events/WindowEventContext.h" 34 #include "core/events/WindowEventContext.h"
35 #include "core/frame/Deprecation.h" 35 #include "core/frame/Deprecation.h"
36 #include "core/frame/FrameView.h" 36 #include "core/frame/FrameView.h"
37 #include "core/frame/LocalDOMWindow.h" 37 #include "core/frame/LocalDOMWindow.h"
38 #include "core/frame/Settings.h" 38 #include "core/frame/Settings.h"
39 #include "core/frame/UseCounter.h" 39 #include "core/frame/UseCounter.h"
40 #include "core/inspector/InspectorTraceEvents.h" 40 #include "core/inspector/InspectorTraceEvents.h"
41 #include "platform/EventDispatchForbiddenScope.h" 41 #include "platform/EventDispatchForbiddenScope.h"
42 #include "platform/TraceEvent.h" 42 #include "platform/tracing/TraceEvent.h"
43 #include "wtf/RefPtr.h" 43 #include "wtf/RefPtr.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 DispatchEventResult EventDispatcher::dispatchEvent(Node& node, EventDispatchMedi ator* mediator) 47 DispatchEventResult EventDispatcher::dispatchEvent(Node& node, EventDispatchMedi ator* mediator)
48 { 48 {
49 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), "EventDispatcher::dis patchEvent"); 49 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), "EventDispatcher::dis patchEvent");
50 #if DCHECK_IS_ON() 50 #if DCHECK_IS_ON()
51 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); 51 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden());
52 #endif 52 #endif
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 // Track the usage of sending a mousedown event to a select element to force 259 // Track the usage of sending a mousedown event to a select element to force
260 // it to open. This measures a possible breakage of not allowing untrusted 260 // it to open. This measures a possible breakage of not allowing untrusted
261 // events to open select boxes. 261 // events to open select boxes.
262 if (!m_event->isTrusted() && m_event->isMouseEvent() && m_event->type() == E ventTypeNames::mousedown && isHTMLSelectElement(*m_node)) { 262 if (!m_event->isTrusted() && m_event->isMouseEvent() && m_event->type() == E ventTypeNames::mousedown && isHTMLSelectElement(*m_node)) {
263 UseCounter::count(m_node->document(), UseCounter::UntrustedMouseDownEven tDispatchedToSelect); 263 UseCounter::count(m_node->document(), UseCounter::UntrustedMouseDownEven tDispatchedToSelect);
264 } 264 }
265 } 265 }
266 266
267 } // namespace blink 267 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698