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

Unified Diff: gin/object_template_builder.h

Issue 101583004: [gin] Turn gin into a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win 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
Index: gin/object_template_builder.h
diff --git a/gin/object_template_builder.h b/gin/object_template_builder.h
index 3103678d4b7c069e0d31356914a6b08c26a980e3..6367b71245c81dbb70b12c926811d3a63e6d0ed8 100644
--- a/gin/object_template_builder.h
+++ b/gin/object_template_builder.h
@@ -11,6 +11,7 @@
#include "base/template_util.h"
#include "gin/converter.h"
#include "gin/function_template.h"
+#include "gin/gin_export.h"
#include "v8/include/v8.h"
namespace gin {
@@ -54,7 +55,7 @@ struct CallbackTraits<T, typename base::enable_if<
// This specialization allows people to construct function templates directly if
// they need to do fancier stuff.
template<>
-struct CallbackTraits<v8::Handle<v8::FunctionTemplate> > {
+struct GIN_EXPORT CallbackTraits<v8::Handle<v8::FunctionTemplate> > {
static v8::Handle<v8::FunctionTemplate> CreateTemplate(
v8::Handle<v8::FunctionTemplate> templ) {
return templ;
@@ -66,7 +67,7 @@ struct CallbackTraits<v8::Handle<v8::FunctionTemplate> > {
// ObjectTemplateBuilder provides a handy interface to creating
// v8::ObjectTemplate instances with various sorts of properties.
-class ObjectTemplateBuilder {
+class GIN_EXPORT ObjectTemplateBuilder {
public:
explicit ObjectTemplateBuilder(v8::Isolate* isolate);
~ObjectTemplateBuilder();

Powered by Google App Engine
This is Rietveld 408576698