Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2506)

Unified Diff: experimental/SkV8Example/SkV8Example.h

Issue 102803003: A simple draw() function in Javascript. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: clean up. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkV8Example/SkV8Example.h
===================================================================
--- experimental/SkV8Example/SkV8Example.h (revision 12506)
+++ experimental/SkV8Example/SkV8Example.h (working copy)
@@ -10,26 +10,40 @@
#ifndef SkV8Example_DEFINED
#define SkV8Example_DEFINED
+#include <v8.h>
+
#include "SkWindow.h"
+
+using namespace v8;
+
+
class SkCanvas;
class SkV8ExampleWindow : public SkOSWindow {
public:
- SkV8ExampleWindow(void* hwnd);
+ SkV8ExampleWindow(void* hwnd,
+ Isolate* isolate,
+ Handle<Context> context,
+ Handle<Script> script);
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;
+ Isolate* fIsolate;
+ Persistent<Context> fContext;
+ Persistent<Script> fScript;
+ SkScalar fRotationAngle;
};
#endif
« no previous file with comments | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698