aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-02-23 13:24:49 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-24 16:03:27 +0000
commit20de615e3d02ff52c9a3c319ce35bcaace97be25 (patch)
tree0e1576ad906828429d400c553d3a54ea662cfb95 /include/views
parenta109e3926ed2fbbb41471a140b64297ea8554357 (diff)
headers: forward declare SkDOM, and include SkClipOp
Change-Id: I38041cd2c71a89604f35832415287e2356592efd Reviewed-on: https://skia-review.googlesource.com/8925 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'include/views')
-rw-r--r--include/views/SkEvent.h6
-rw-r--r--include/views/SkView.h15
2 files changed, 12 insertions, 9 deletions
diff --git a/include/views/SkEvent.h b/include/views/SkEvent.h
index 6495530006..b78fd6fc1d 100644
--- a/include/views/SkEvent.h
+++ b/include/views/SkEvent.h
@@ -8,10 +8,12 @@
#ifndef SkEvent_DEFINED
#define SkEvent_DEFINED
-#include "SkDOM.h"
#include "SkMetaData.h"
#include "SkString.h"
+class SkDOM;
+struct SkDOMNode;
+
#include "../private/SkLeanWindows.h"
/** Unique 32bit id used to identify an instance of SkEventSink. When events are
@@ -180,7 +182,7 @@ public:
const SkMetaData& getMetaData() const { return fMeta; }
/** Call this to initialize the event from the specified XML node */
- void inflate(const SkDOM&, const SkDOM::Node*);
+ void inflate(const SkDOM&, const SkDOMNode*);
SkDEBUGCODE(void dump(const char title[] = NULL);)
diff --git a/include/views/SkView.h b/include/views/SkView.h
index 091eba366d..43f86f501e 100644
--- a/include/views/SkView.h
+++ b/include/views/SkView.h
@@ -12,12 +12,13 @@
#include "SkEventSink.h"
#include "SkRect.h"
-#include "SkDOM.h"
#include "SkMatrix.h"
#include "SkMetaData.h"
class SkCanvas;
class SkLayerView;
+class SkDOM;
+struct SkDOMNode;
/** \class SkView
@@ -260,10 +261,10 @@ public:
void draw(SkView*, SkCanvas*);
- void inflate(const SkDOM&, const SkDOM::Node*);
+ void inflate(const SkDOM&, const SkDOMNode*);
protected:
virtual void onDraw(SkView*, SkCanvas*) = 0;
- virtual void onInflate(const SkDOM&, const SkDOM::Node*);
+ virtual void onInflate(const SkDOM&, const SkDOMNode*);
private:
typedef SkRefCnt INHERITED;
};
@@ -288,10 +289,10 @@ public:
void layoutChildren(SkView* parent);
- void inflate(const SkDOM&, const SkDOM::Node*);
+ void inflate(const SkDOM&, const SkDOMNode*);
protected:
virtual void onLayoutChildren(SkView* parent) = 0;
- virtual void onInflate(const SkDOM&, const SkDOM::Node*);
+ virtual void onInflate(const SkDOM&, const SkDOMNode*);
private:
typedef SkRefCnt INHERITED;
};
@@ -311,7 +312,7 @@ public:
/** Call this to initialize this view based on the specified XML node
*/
- void inflate(const SkDOM& dom, const SkDOM::Node* node);
+ void inflate(const SkDOM& dom, const SkDOMNode* node);
SkDEBUGCODE(void dump(bool recurse) const;)
@@ -349,7 +350,7 @@ protected:
*/
virtual bool onClick(Click*);
/** Override this to initialize your subclass from the XML node. Be sure to call the inherited version too */
- virtual void onInflate(const SkDOM& dom, const SkDOM::Node* node);
+ virtual void onInflate(const SkDOM& dom, const SkDOMNode* node);
/** Override this if you want to perform post initialization work based on the ID dictionary built
during XML parsing. Be sure to call the inherited version too.
*/