Remove "using namespace v8" in header. This allows us to turn all warnings into error...
[pdfium.git] / fpdfsdk / include / javascript / JS_Define.h
index c86289e..81d4455 100644 (file)
@@ -23,14 +23,14 @@ struct JSConstSpec
 struct JSPropertySpec\r
 {\r
        const wchar_t* pName;\r
-       AccessorGetterCallback pPropGet;\r
-       AccessorSetterCallback pPropPut;\r
+       v8::AccessorGetterCallback pPropGet;\r
+       v8::AccessorSetterCallback pPropPut;\r
 };\r
 \r
 struct JSMethodSpec\r
 {\r
        const wchar_t* pName;\r
-       FunctionCallback pMethodCall;\r
+       v8::FunctionCallback pMethodCall;\r
        unsigned nParamNum;\r
 };\r
 \r
@@ -100,7 +100,7 @@ typedef CFX_WideString      JS_ErrorString;
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        CJS_PropValue value(isolate);\\r
@@ -146,7 +146,7 @@ typedef CFX_WideString      JS_ErrorString;
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        CJS_PropValue propValue(CJS_Value(isolate,value,VT_unknown));\\r
@@ -197,7 +197,7 @@ JS_STATIC_PROP_SET(prop_name, class_name)
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        CJS_Parameters parameters;\\r
@@ -403,7 +403,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        v8::String::Utf8Value utf8_value(property);\\r
@@ -451,7 +451,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        v8::String::Utf8Value utf8_value(property);\\r
@@ -498,7 +498,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        v8::String::Utf8Value utf8_value(property);\\r
@@ -598,7 +598,7 @@ void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        CJS_Parameters parameters;\\r
@@ -651,7 +651,7 @@ static void fun_name##_static(JS_METHOD_ARGS)\
        v8::Local<v8::Value> v = context->GetEmbedderData(1);\\r
        ASSERT(!v.IsEmpty());\\r
        if(v.IsEmpty()) return;\\r
-       v8::Handle<External> field = v8::Handle<External>::Cast(v);\\r
+       v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\\r
        IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\\r
        IFXJS_Context* cc = pRuntime->GetCurrentContext();\\r
        CJS_Parameters parameters;\\r