Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/WebKit/Source/core/events/EventListener.h

Issue 2186823002: Do not call an event listener on a cloned node in svg <use>'s UA shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip timeout test Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/core/events/EventListenerMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698