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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual ~EventTarget(); | 113 virtual ~EventTarget(); |
113 | 114 |
114 virtual const AtomicString& interfaceName() const = 0; | 115 virtual const AtomicString& interfaceName() const = 0; |
115 virtual ExecutionContext* getExecutionContext() const = 0; | 116 virtual ExecutionContext* getExecutionContext() const = 0; |
116 | 117 |
117 virtual Node* toNode(); | 118 virtual Node* toNode(); |
118 virtual const DOMWindow* toDOMWindow() const; | 119 virtual const DOMWindow* toDOMWindow() const; |
119 virtual const LocalDOMWindow* toLocalDOMWindow() const; | 120 virtual const LocalDOMWindow* toLocalDOMWindow() const; |
120 virtual LocalDOMWindow* toLocalDOMWindow(); | 121 virtual LocalDOMWindow* toLocalDOMWindow(); |
121 virtual MessagePort* toMessagePort(); | 122 virtual MessagePort* toMessagePort(); |
| 123 virtual ServiceWorker* toServiceWorker(); |
122 | 124 |
123 bool addEventListener(const AtomicString& eventType, | 125 bool addEventListener(const AtomicString& eventType, |
124 EventListener*, | 126 EventListener*, |
125 bool useCapture = false); | 127 bool useCapture = false); |
126 bool addEventListener(const AtomicString& eventType, | 128 bool addEventListener(const AtomicString& eventType, |
127 EventListener*, | 129 EventListener*, |
128 const AddEventListenerOptionsOrBoolean&); | 130 const AddEventListenerOptionsOrBoolean&); |
129 bool addEventListener(const AtomicString& eventType, | 131 bool addEventListener(const AtomicString& eventType, |
130 EventListener*, | 132 EventListener*, |
131 AddEventListenerOptionsResolved&); | 133 AddEventListenerOptionsResolved&); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 const AtomicString& eventType) { | 321 const AtomicString& eventType) { |
320 EventTargetData* d = eventTargetData(); | 322 EventTargetData* d = eventTargetData(); |
321 if (!d) | 323 if (!d) |
322 return false; | 324 return false; |
323 return d->eventListenerMap.containsCapturing(eventType); | 325 return d->eventListenerMap.containsCapturing(eventType); |
324 } | 326 } |
325 | 327 |
326 } // namespace blink | 328 } // namespace blink |
327 | 329 |
328 #endif // EventTarget_h | 330 #endif // EventTarget_h |
OLD | NEW |