aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views/SkEventSink.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-11-22 13:23:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-22 18:59:44 +0000
commit4f99e58252175f01c0b9ca1a5e2fc7acec6acec3 (patch)
tree64458810ed2962bbdcb470a4f199feade2be2b03 /include/views/SkEventSink.h
parentd923a71a113d97dc87b4424c25d5b5019331db24 (diff)
Remove a huge pile of views code
All of this is dead when not using the old SkWindow framework. TBR=reed@google.com Bug: skia: Change-Id: I0f6ab18987a98469bfd367d5bc10967300dfd3ca Reviewed-on: https://skia-review.googlesource.com/75384 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/views/SkEventSink.h')
-rw-r--r--include/views/SkEventSink.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/include/views/SkEventSink.h b/include/views/SkEventSink.h
index bf974f6e5c..076ddb316d 100644
--- a/include/views/SkEventSink.h
+++ b/include/views/SkEventSink.h
@@ -13,8 +13,6 @@
#include "SkRefCnt.h"
#include "SkEvent.h"
-struct SkTagList;
-
/** \class SkEventSink
SkEventSink is the base class for all objects that receive SkEvents.
@@ -44,46 +42,6 @@ public:
bool doQuery(SkEvent* query);
/**
- * Add sinkID to the list of listeners, to receive events from calls to sendToListeners()
- * and postToListeners(). If sinkID already exists in the listener list, no change is made.
- */
- void addListenerID(SkEventSinkID sinkID);
-
- /**
- * Copy listeners from one event sink to another, typically from parent to child.
- * @param from the event sink to copy the listeners from
- */
- void copyListeners(const SkEventSink& from);
-
- /**
- * Remove sinkID from the list of listeners. If sinkID does not appear in the list,
- * no change is made.
- */
- void removeListenerID(SkEventSinkID);
-
- /**
- * Returns true if there are 1 or more listeners attached to this eventsink
- */
- bool hasListeners() const;
-
- /**
- * Posts a copy of evt to each of the eventsinks in the lisener list.
- * This ignores the targetID and target proc in evt.
- */
- void postToListeners(const SkEvent& evt, SkMSec delay = 0);
-
- enum EventResult {
- kHandled_EventResult, //!< the eventsink returned true from its doEvent method
- kNotHandled_EventResult, //!< the eventsink returned false from its doEvent method
- kSinkNotFound_EventResult //!< no matching eventsink was found for the event's getSink().
- };
-
- /**
- * DoEvent handles dispatching the event to its target ID or proc.
- */
- static EventResult DoEvent(const SkEvent&);
-
- /**
* Returns the matching eventsink, or null if not found
*/
static SkEventSink* FindSink(SkEventSinkID);
@@ -95,13 +53,8 @@ protected:
virtual bool onEvent(const SkEvent&);
virtual bool onQuery(SkEvent*);
- SkTagList* findTagList(U8CPU tag) const;
- void addTagList(SkTagList*);
- void removeTagList(U8CPU tag);
-
private:
SkEventSinkID fID;
- SkTagList* fTagHead;
// for our private link-list
SkEventSink* fNextSink;