From 8ceee43de49b314fff58852c2d89ed3885ae71ee Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Fri, 1 Dec 2017 10:52:28 -0500 Subject: Remove more views code, just to simplify things Bug: skia: Change-Id: Ie31a3c764e4f88f2b08f4198bd253841a2d8c264 Reviewed-on: https://skia-review.googlesource.com/79100 Reviewed-by: Brian Salomon Commit-Queue: Brian Osman --- include/views/SkEvent.h | 28 ++++------------------------ include/views/SkView.h | 12 ------------ 2 files changed, 4 insertions(+), 36 deletions(-) (limited to 'include/views') diff --git a/include/views/SkEvent.h b/include/views/SkEvent.h index aad3f58f3a..a2ccb0c748 100644 --- a/include/views/SkEvent.h +++ b/include/views/SkEvent.h @@ -9,7 +9,6 @@ #define SkEvent_DEFINED #include "SkMetaData.h" -#include "SkString.h" /** Unique 32bit id used to identify an instance of SkEventSink. When events are posted, they are posted to a specific sinkID. When it is time to dispatch the @@ -27,35 +26,18 @@ typedef uint32_t SkEventSinkID; */ class SkEvent { public: - /** - * Function pointer that takes an event, returns true if it "handled" it. - */ - typedef bool (*Proc)(const SkEvent& evt); - SkEvent(); - explicit SkEvent(const SkString& type); explicit SkEvent(const char type[]); SkEvent(const SkEvent& src); ~SkEvent(); - /** Copy the event's type into the specified SkString parameter */ - void getType(SkString* str) const; - - /** Returns true if the event's type matches exactly the specified type (case sensitive) */ - bool isType(const SkString& str) const; - /** Returns true if the event's type matches exactly the specified type (case sensitive) */ - bool isType(const char type[], size_t len = 0) const; + bool isType(const char type[]) const; /** * Set the event's type to the specified string. */ - void setType(const SkString&); - - /** - * Set the event's type to the specified string. - */ - void setType(const char type[], size_t len = 0); + void setType(const char type[]); /** * Return the event's unnamed 32bit field. Default value is 0 @@ -123,8 +105,6 @@ public: return fMeta.setScalars(name, count, values); } /** Add/replace the named string field to the event. In XML use the subelement > (32 - kFlagShiftCount) @@ -58,13 +50,9 @@ public: /** Helper that returns non-zero if the kVisible_Mask bit is set in the view's flags */ int isVisible() const { return fFlags & kVisible_Mask; } - int isEnabled() const { return fFlags & kEnabled_Mask; } - int isFocusable() const { return fFlags & kFocusable_Mask; } int isClipToBounds() const { return !(fFlags & kNoClip_Mask); } /** Helper to set/clear the view's kVisible_Mask flag */ void setVisibleP(bool); - void setEnabledP(bool); - void setFocusableP(bool); void setClipToBounds(bool); /** Return the view's width */ -- cgit v1.2.3