aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2008-12-19 18:24:35 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2008-12-19 18:24:35 +0000
commit6efdc47afc8bb24603fc0d15146ada609b728f2f (patch)
tree30fb21750ba6ab3de207c29a90b522d653af2b32 /include/views
parent647254a7fd78090f64027383ff98e7ff2cc2667b (diff)
first cut at event-based test app
git-svn-id: http://skia.googlecode.com/svn/trunk@37 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/views')
-rw-r--r--include/views/SkOSWindow_Mac.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/views/SkOSWindow_Mac.h b/include/views/SkOSWindow_Mac.h
index 1f6a1fa9b2..0d808e105b 100644
--- a/include/views/SkOSWindow_Mac.h
+++ b/include/views/SkOSWindow_Mac.h
@@ -24,13 +24,18 @@ public:
SkOSWindow(void* hwnd);
void* getHWND() const { return fHWND; }
+ void* getHVIEW() const { return fHVIEW; }
void updateSize();
static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
static pascal OSStatus SkOSWindow::EventHandler( EventHandlerCallRef inHandler, EventRef inEvent, void* userData );
+ void doPaint(void* ctx);
+
protected:
+ // overrides from SkEventSink
+ virtual bool onEvent(const SkEvent& evt);
// overrides from SkWindow
virtual void onHandleInval(const SkIRect&);
// overrides from SkView
@@ -39,8 +44,7 @@ protected:
private:
void* fHWND;
-
- void doPaint(void* ctx);
+ void* fHVIEW;
typedef SkWindow INHERITED;
};