diff options
author | Brian Osman <brianosman@google.com> | 2017-12-01 10:52:28 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-01 17:12:49 +0000 |
commit | 8ceee43de49b314fff58852c2d89ed3885ae71ee (patch) | |
tree | c3046b938bd7c026c84f164b785f749472629f80 /include/views/SkView.h | |
parent | 3ac99cfaa2d434c71d9c82fc234fadd55fe96394 (diff) |
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 <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/views/SkView.h')
-rw-r--r-- | include/views/SkView.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/views/SkView.h b/include/views/SkView.h index 9a84af832d..785f0cddbd 100644 --- a/include/views/SkView.h +++ b/include/views/SkView.h @@ -26,20 +26,12 @@ class SkView : public SkEventSink { public: enum Flag_Shift { kVisible_Shift, - kEnabled_Shift, - kFocusable_Shift, - kFlexH_Shift, - kFlexV_Shift, kNoClip_Shift, kFlagShiftCount }; enum Flag_Mask { kVisible_Mask = 1 << kVisible_Shift, //!< set if the view is visible - kEnabled_Mask = 1 << kEnabled_Shift, //!< set if the view is enabled - kFocusable_Mask = 1 << kFocusable_Shift, //!< set if the view can receive focus - kFlexH_Mask = 1 << kFlexH_Shift, //!< set if the view's width is stretchable - kFlexV_Mask = 1 << kFlexV_Shift, //!< set if the view's height is stretchable kNoClip_Mask = 1 << kNoClip_Shift, //!< set if the view is not clipped to its bounds kAllFlagMasks = (uint32_t)(0 - 1) >> (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 */ |