OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "bindings/core/v8/V8AbstractEventListener.h" | 31 #include "bindings/core/v8/V8AbstractEventListener.h" |
32 | 32 |
33 #include "bindings/core/v8/V8BindingForCore.h" | 33 #include "bindings/core/v8/V8BindingForCore.h" |
34 #include "bindings/core/v8/V8Event.h" | 34 #include "bindings/core/v8/V8Event.h" |
35 #include "bindings/core/v8/V8EventListenerHelper.h" | 35 #include "bindings/core/v8/V8EventListenerHelper.h" |
36 #include "bindings/core/v8/V8EventTarget.h" | 36 #include "bindings/core/v8/V8EventTarget.h" |
37 #include "bindings/core/v8/V8PrivateProperty.h" | |
38 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
39 #include "core/dom/DocumentParser.h" | 38 #include "core/dom/DocumentParser.h" |
40 #include "core/dom/ExecutionContext.h" | 39 #include "core/dom/ExecutionContext.h" |
41 #include "core/events/BeforeUnloadEvent.h" | 40 #include "core/events/BeforeUnloadEvent.h" |
42 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
43 #include "core/workers/WorkerGlobalScope.h" | 42 #include "core/workers/WorkerGlobalScope.h" |
44 #include "platform/InstanceCounters.h" | 43 #include "platform/InstanceCounters.h" |
| 44 #include "platform/bindings/V8PrivateProperty.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 V8AbstractEventListener::V8AbstractEventListener(bool is_attribute, | 48 V8AbstractEventListener::V8AbstractEventListener(bool is_attribute, |
49 DOMWrapperWorld& world, | 49 DOMWrapperWorld& world, |
50 v8::Isolate* isolate) | 50 v8::Isolate* isolate) |
51 : EventListener(kJSEventListenerType), | 51 : EventListener(kJSEventListenerType), |
52 listener_(nullptr), | 52 listener_(nullptr), |
53 is_attribute_(is_attribute), | 53 is_attribute_(is_attribute), |
54 world_(world), | 54 world_(world), |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 DEFINE_TRACE(V8AbstractEventListener) { | 232 DEFINE_TRACE(V8AbstractEventListener) { |
233 visitor->Trace(worker_global_scope_); | 233 visitor->Trace(worker_global_scope_); |
234 EventListener::Trace(visitor); | 234 EventListener::Trace(visitor); |
235 } | 235 } |
236 | 236 |
237 DEFINE_TRACE_WRAPPERS(V8AbstractEventListener) { | 237 DEFINE_TRACE_WRAPPERS(V8AbstractEventListener) { |
238 visitor->TraceWrappers(listener_.Cast<v8::Value>()); | 238 visitor->TraceWrappers(listener_.Cast<v8::Value>()); |
239 } | 239 } |
240 | 240 |
241 } // namespace blink | 241 } // namespace blink |
OLD | NEW |