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

Unified Diff: sky/engine/core/events/EventListener.h

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/editing/ReplaceSelectionCommand.cpp ('k') | sky/engine/core/events/EventListenerMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/events/EventListener.h
diff --git a/sky/engine/core/events/EventListener.h b/sky/engine/core/events/EventListener.h
index 8552c57c6f3bc480c5eb9b6744add0e0fd47f3b3..b62b2dbad9e384b38dab08b7d5b6d64c8ffcee1d 100644
--- a/sky/engine/core/events/EventListener.h
+++ b/sky/engine/core/events/EventListener.h
@@ -25,40 +25,20 @@
namespace blink {
- class DOMWrapperWorld;
- class Event;
- class ExecutionContext;
-
- class EventListener : public RefCounted<EventListener> {
- public:
- enum Type {
- JSEventListenerType,
- ImageEventListenerType,
- CPPEventListenerType,
- ConditionEventListenerType,
- NativeEventListenerType,
- };
-
- virtual ~EventListener() { }
- virtual bool operator==(const EventListener&) = 0;
- virtual void handleEvent(ExecutionContext*, Event*) = 0;
- virtual bool wasCreatedFromMarkup() const { return false; }
- virtual bool belongsToTheCurrentWorld() const { return false; }
-
- bool isAttribute() const { return virtualisAttribute(); }
- Type type() const { return m_type; }
-
- protected:
- explicit EventListener(Type type)
- : m_type(type)
- {
- }
-
- private:
- virtual bool virtualisAttribute() const { return false; }
-
- Type m_type;
- };
+class Event;
+class ExecutionContext;
+
+class EventListener : public RefCounted<EventListener> {
+public:
+ virtual ~EventListener() { }
+ virtual bool operator==(const EventListener&) = 0;
+ virtual void handleEvent(ExecutionContext*, Event*) = 0;
+
+protected:
+ explicit EventListener()
+ {
+ }
+};
}
« no previous file with comments | « sky/engine/core/editing/ReplaceSelectionCommand.cpp ('k') | sky/engine/core/events/EventListenerMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698