Index: experimental/SkV8Example/SkV8Example.h |
=================================================================== |
--- experimental/SkV8Example/SkV8Example.h (revision 0) |
+++ experimental/SkV8Example/SkV8Example.h (revision 0) |
@@ -0,0 +1,35 @@ |
+/* |
+ * Copyright 2013 Google Inc. |
+ * |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ * |
+ */ |
+ |
+#ifndef SkV8Example_DEFINED |
+#define SkV8Example_DEFINED |
+ |
+#include "SkWindow.h" |
+ |
+class SkCanvas; |
+ |
+ |
+class SkV8ExampleWindow : public SkOSWindow { |
+public: |
+ SkV8ExampleWindow(void* hwnd); |
+ |
+ |
+protected: |
+ virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; |
+ |
+ |
+#ifdef SK_BUILD_FOR_WIN |
+ virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; |
+#endif |
+ |
+private: |
+ typedef SkOSWindow INHERITED; |
+}; |
+ |
+#endif |