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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include <memory> | 49 #include <memory> |
50 | 50 |
51 namespace blink { | 51 namespace blink { |
52 | 52 |
53 class DOMWindow; | 53 class DOMWindow; |
54 class Event; | 54 class Event; |
55 class LocalDOMWindow; | 55 class LocalDOMWindow; |
56 class ExceptionState; | 56 class ExceptionState; |
57 class MessagePort; | 57 class MessagePort; |
58 class Node; | 58 class Node; |
| 59 class ServiceWorker; |
59 | 60 |
60 struct FiringEventIterator { | 61 struct FiringEventIterator { |
61 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 62 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
62 FiringEventIterator(const AtomicString& eventType, | 63 FiringEventIterator(const AtomicString& eventType, |
63 size_t& iterator, | 64 size_t& iterator, |
64 size_t& end) | 65 size_t& end) |
65 : eventType(eventType), iterator(iterator), end(end) {} | 66 : eventType(eventType), iterator(iterator), end(end) {} |
66 | 67 |
67 const AtomicString& eventType; | 68 const AtomicString& eventType; |
68 size_t& iterator; | 69 size_t& iterator; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual ~EventTarget(); | 112 virtual ~EventTarget(); |
112 | 113 |
113 virtual const AtomicString& interfaceName() const = 0; | 114 virtual const AtomicString& interfaceName() const = 0; |
114 virtual ExecutionContext* getExecutionContext() const = 0; | 115 virtual ExecutionContext* getExecutionContext() const = 0; |
115 | 116 |
116 virtual Node* toNode(); | 117 virtual Node* toNode(); |
117 virtual const DOMWindow* toDOMWindow() const; | 118 virtual const DOMWindow* toDOMWindow() const; |
118 virtual const LocalDOMWindow* toLocalDOMWindow() const; | 119 virtual const LocalDOMWindow* toLocalDOMWindow() const; |
119 virtual LocalDOMWindow* toLocalDOMWindow(); | 120 virtual LocalDOMWindow* toLocalDOMWindow(); |
120 virtual MessagePort* toMessagePort(); | 121 virtual MessagePort* toMessagePort(); |
| 122 virtual ServiceWorker* toServiceWorker(); |
121 | 123 |
122 bool addEventListener(const AtomicString& eventType, | 124 bool addEventListener(const AtomicString& eventType, |
123 EventListener*, | 125 EventListener*, |
124 bool useCapture = false); | 126 bool useCapture = false); |
125 bool addEventListener(const AtomicString& eventType, | 127 bool addEventListener(const AtomicString& eventType, |
126 EventListener*, | 128 EventListener*, |
127 const AddEventListenerOptionsOrBoolean&); | 129 const AddEventListenerOptionsOrBoolean&); |
128 bool addEventListener(const AtomicString& eventType, | 130 bool addEventListener(const AtomicString& eventType, |
129 EventListener*, | 131 EventListener*, |
130 AddEventListenerOptionsResolved&); | 132 AddEventListenerOptionsResolved&); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 const AtomicString& eventType) { | 320 const AtomicString& eventType) { |
319 EventTargetData* d = eventTargetData(); | 321 EventTargetData* d = eventTargetData(); |
320 if (!d) | 322 if (!d) |
321 return false; | 323 return false; |
322 return d->eventListenerMap.containsCapturing(eventType); | 324 return d->eventListenerMap.containsCapturing(eventType); |
323 } | 325 } |
324 | 326 |
325 } // namespace blink | 327 } // namespace blink |
326 | 328 |
327 #endif // EventTarget_h | 329 #endif // EventTarget_h |
OLD | NEW |