| 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 22 matching lines...) Expand all Loading... |
| 33 #define EventTarget_h | 33 #define EventTarget_h |
| 34 | 34 |
| 35 #include <wtf/Forward.h> | 35 #include <wtf/Forward.h> |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class AtomicString; | 39 class AtomicString; |
| 40 class DOMApplicationCache; | 40 class DOMApplicationCache; |
| 41 class Event; | 41 class Event; |
| 42 class EventListener; | 42 class EventListener; |
| 43 class EventTargetNode; |
| 43 class MessagePort; | 44 class MessagePort; |
| 44 class Node; | |
| 45 class ScriptExecutionContext; | 45 class ScriptExecutionContext; |
| 46 class SVGElementInstance; | 46 class SVGElementInstance; |
| 47 class Worker; | 47 class Worker; |
| 48 class WorkerContext; | 48 class WorkerContext; |
| 49 class XMLHttpRequest; | 49 class XMLHttpRequest; |
| 50 class XMLHttpRequestUpload; | 50 class XMLHttpRequestUpload; |
| 51 | 51 |
| 52 typedef int ExceptionCode; | 52 typedef int ExceptionCode; |
| 53 | 53 |
| 54 class EventTarget { | 54 class EventTarget { |
| 55 public: | 55 public: |
| 56 virtual MessagePort* toMessagePort(); | 56 virtual MessagePort* toMessagePort(); |
| 57 virtual Node* toNode(); | 57 virtual EventTargetNode* toNode(); |
| 58 virtual XMLHttpRequest* toXMLHttpRequest(); | 58 virtual XMLHttpRequest* toXMLHttpRequest(); |
| 59 virtual XMLHttpRequestUpload* toXMLHttpRequestUpload(); | 59 virtual XMLHttpRequestUpload* toXMLHttpRequestUpload(); |
| 60 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 60 #if ENABLE(OFFLINE_WEB_APPLICATIONS) |
| 61 virtual DOMApplicationCache* toDOMApplicationCache(); | 61 virtual DOMApplicationCache* toDOMApplicationCache(); |
| 62 #endif | 62 #endif |
| 63 #if ENABLE(SVG) | 63 #if ENABLE(SVG) |
| 64 virtual SVGElementInstance* toSVGElementInstance(); | 64 virtual SVGElementInstance* toSVGElementInstance(); |
| 65 #endif | 65 #endif |
| 66 #if ENABLE(WORKERS) | 66 #if ENABLE(WORKERS) |
| 67 virtual Worker* toWorker(); | 67 virtual Worker* toWorker(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 97 bool eventDispatchForbidden(); | 97 bool eventDispatchForbidden(); |
| 98 #else | 98 #else |
| 99 inline void forbidEventDispatch() { } | 99 inline void forbidEventDispatch() { } |
| 100 inline void allowEventDispatch() { } | 100 inline void allowEventDispatch() { } |
| 101 #endif | 101 #endif |
| 102 | 102 |
| 103 } | 103 } |
| 104 | 104 |
| 105 #endif | 105 #endif |
| 106 | 106 |
| OLD | NEW |