OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 * | 7 * |
8 */ | 8 */ |
9 | 9 |
10 #ifndef SkV8Example_Path_DEFINED | 10 #ifndef SkV8Example_Path_DEFINED |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Path JS methods. | 33 // Path JS methods. |
34 static void ClosePath(const v8::FunctionCallbackInfo<v8::Value>& args); | 34 static void ClosePath(const v8::FunctionCallbackInfo<v8::Value>& args); |
35 static void MoveTo(const v8::FunctionCallbackInfo<v8::Value>& args); | 35 static void MoveTo(const v8::FunctionCallbackInfo<v8::Value>& args); |
36 static void LineTo(const v8::FunctionCallbackInfo<v8::Value>& args); | 36 static void LineTo(const v8::FunctionCallbackInfo<v8::Value>& args); |
37 static void QuadraticCurveTo( | 37 static void QuadraticCurveTo( |
38 const v8::FunctionCallbackInfo<v8::Value>& args); | 38 const v8::FunctionCallbackInfo<v8::Value>& args); |
39 static void BezierCurveTo(const v8::FunctionCallbackInfo<v8::Value>& args); | 39 static void BezierCurveTo(const v8::FunctionCallbackInfo<v8::Value>& args); |
40 static void Arc(const v8::FunctionCallbackInfo<v8::Value>& args); | 40 static void Arc(const v8::FunctionCallbackInfo<v8::Value>& args); |
41 static void Rect(const v8::FunctionCallbackInfo<v8::Value>& args); | 41 static void Rect(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 42 static void Oval(const v8::FunctionCallbackInfo<v8::Value>& args); |
42 private: | 43 private: |
43 SkPath fSkPath; | 44 SkPath fSkPath; |
44 | 45 |
45 static Path* Unwrap(const v8::FunctionCallbackInfo<v8::Value>& args); | 46 static Path* Unwrap(const v8::FunctionCallbackInfo<v8::Value>& args); |
46 | 47 |
47 static Global* gGlobal; | 48 static Global* gGlobal; |
48 }; | 49 }; |
49 | 50 |
50 #endif | 51 #endif |
OLD | NEW |