From c2597935db173c7e3dc7eb7beae5d2db2d08da28 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 15 Nov 2010 09:44:38 -0800 Subject: [PATCH] Namespaces --- src/Canvas.cc | 3 --- src/Canvas.h | 1 + src/CanvasGradient.h | 2 -- src/CanvasRenderingContext2d.cc | 3 --- src/Image.h | 2 -- src/init.cc | 4 ++++ 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/Canvas.cc b/src/Canvas.cc index 1f4f4da..1d2bc8b 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -12,9 +12,6 @@ #include #include -using namespace v8; -using namespace node; - /* * Buffer data pointer access. */ diff --git a/src/Canvas.h b/src/Canvas.h index e4bce77..8f6b14e 100644 --- a/src/Canvas.h +++ b/src/Canvas.h @@ -14,6 +14,7 @@ #include using namespace v8; +using namespace node; /* * Maxmimum states per context. diff --git a/src/CanvasGradient.h b/src/CanvasGradient.h index 8941b77..07fecb2 100644 --- a/src/CanvasGradient.h +++ b/src/CanvasGradient.h @@ -10,8 +10,6 @@ #include "Canvas.h" -using namespace v8; - class Gradient: public node::ObjectWrap { public: static void Initialize(Handle target); diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 7d4e123..97fc760 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -13,9 +13,6 @@ #include "CanvasRenderingContext2d.h" #include "CanvasGradient.h" -using namespace v8; -using namespace node; - /* * Set RGBA. */ diff --git a/src/Image.h b/src/Image.h index d35ed58..3f3b789 100644 --- a/src/Image.h +++ b/src/Image.h @@ -10,8 +10,6 @@ #include "Canvas.h" -using namespace v8; - class Image: public node::ObjectWrap { public: char *filename; diff --git a/src/init.cc b/src/init.cc index 754fa38..69ff28f 100644 --- a/src/init.cc +++ b/src/init.cc @@ -7,6 +7,8 @@ #include "Canvas.h" #include "Image.h" +#include "ImageData.h" +#include "PixelArray.h" #include "CanvasGradient.h" #include "CanvasRenderingContext2d.h" @@ -15,6 +17,8 @@ init (Handle target) { HandleScope scope; Canvas::Initialize(target); Image::Initialize(target); + ImageData::Initialize(target); + PixelArray::Initialize(target); Context2d::Initialize(target); Gradient::Initialize(target); target->Set(String::New("cairoVersion"), String::New(cairo_version_string()));