OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 26 matching lines...) Expand all Loading... |
37 ImageEventListenerType, | 37 ImageEventListenerType, |
38 CPPEventListenerType, | 38 CPPEventListenerType, |
39 ConditionEventListenerType, | 39 ConditionEventListenerType, |
40 NativeEventListenerType, | 40 NativeEventListenerType, |
41 }; | 41 }; |
42 | 42 |
43 virtual ~EventListener() { } | 43 virtual ~EventListener() { } |
44 virtual bool operator==(const EventListener&) const = 0; | 44 virtual bool operator==(const EventListener&) const = 0; |
45 virtual void handleEvent(ExecutionContext*, Event*) = 0; | 45 virtual void handleEvent(ExecutionContext*, Event*) = 0; |
46 virtual const String& code() const { return emptyString(); } | 46 virtual const String& code() const { return emptyString(); } |
47 virtual bool wasCreatedFromMarkup() const { return false; } | |
48 virtual bool belongsToTheCurrentWorld() const { return false; } | 47 virtual bool belongsToTheCurrentWorld() const { return false; } |
49 | 48 |
50 bool isAttribute() const { return virtualisAttribute(); } | 49 bool isAttribute() const { return virtualisAttribute(); } |
51 ListenerType type() const { return m_type; } | 50 ListenerType type() const { return m_type; } |
52 | 51 |
53 DEFINE_INLINE_VIRTUAL_TRACE() { } | 52 DEFINE_INLINE_VIRTUAL_TRACE() { } |
54 | 53 |
55 protected: | 54 protected: |
56 explicit EventListener(ListenerType type) | 55 explicit EventListener(ListenerType type) |
57 : m_type(type) | 56 : m_type(type) |
58 { | 57 { |
59 } | 58 } |
60 | 59 |
61 private: | 60 private: |
62 virtual bool virtualisAttribute() const { return false; } | 61 virtual bool virtualisAttribute() const { return false; } |
63 | 62 |
64 ListenerType m_type; | 63 ListenerType m_type; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif | 68 #endif |
OLD | NEW |