OLD | NEW |
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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2011 Google Inc. All rights reserved. | 10 * Copyright (C) 2011 Google Inc. All rights reserved. |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "core/events/WindowEventContext.h" | 36 #include "core/events/WindowEventContext.h" |
37 #include "core/frame/Deprecation.h" | 37 #include "core/frame/Deprecation.h" |
38 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
39 #include "core/frame/LocalDOMWindow.h" | 39 #include "core/frame/LocalDOMWindow.h" |
40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
41 #include "core/frame/UseCounter.h" | 41 #include "core/frame/UseCounter.h" |
42 #include "core/html/HTMLElement.h" | 42 #include "core/html/HTMLElement.h" |
43 #include "core/inspector/InspectorTraceEvents.h" | 43 #include "core/inspector/InspectorTraceEvents.h" |
44 #include "platform/EventDispatchForbiddenScope.h" | 44 #include "platform/EventDispatchForbiddenScope.h" |
45 #include "platform/instrumentation/tracing/TraceEvent.h" | 45 #include "platform/instrumentation/tracing/TraceEvent.h" |
46 #include "wtf/RefPtr.h" | 46 #include "platform/wtf/RefPtr.h" |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 DispatchEventResult EventDispatcher::DispatchEvent( | 50 DispatchEventResult EventDispatcher::DispatchEvent( |
51 Node& node, | 51 Node& node, |
52 EventDispatchMediator* mediator) { | 52 EventDispatchMediator* mediator) { |
53 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), | 53 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.debug"), |
54 "EventDispatcher::dispatchEvent"); | 54 "EventDispatcher::dispatchEvent"); |
55 #if DCHECK_IS_ON() | 55 #if DCHECK_IS_ON() |
56 DCHECK(!EventDispatchForbiddenScope::IsEventDispatchForbidden()); | 56 DCHECK(!EventDispatchForbiddenScope::IsEventDispatchForbidden()); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // events to open select boxes. | 306 // events to open select boxes. |
307 if (!event_->isTrusted() && event_->IsMouseEvent() && | 307 if (!event_->isTrusted() && event_->IsMouseEvent() && |
308 event_->type() == EventTypeNames::mousedown && | 308 event_->type() == EventTypeNames::mousedown && |
309 isHTMLSelectElement(*node_)) { | 309 isHTMLSelectElement(*node_)) { |
310 UseCounter::Count(node_->GetDocument(), | 310 UseCounter::Count(node_->GetDocument(), |
311 UseCounter::kUntrustedMouseDownEventDispatchedToSelect); | 311 UseCounter::kUntrustedMouseDownEventDispatchedToSelect); |
312 } | 312 } |
313 } | 313 } |
314 | 314 |
315 } // namespace blink | 315 } // namespace blink |
OLD | NEW |