diff options
author | John Abd-El-Malek <jam@chromium.org> | 2014-05-20 09:52:29 -0700 |
---|---|---|
committer | John Abd-El-Malek <jam@chromium.org> | 2014-05-20 09:52:29 -0700 |
commit | 41f0590a9d7d627783a1b11c86808959928fc1a6 (patch) | |
tree | 396f3e96618f93decaacdc1f18f2015e3d09eb34 /fpdfsdk/include/javascript/JS_Define.h | |
parent | 951f241bcf22f0095abe2f109adfdd9c19e76d70 (diff) | |
download | pdfium-41f0590a9d7d627783a1b11c86808959928fc1a6.tar.xz |
Remove "using namespace v8" in header. This allows us to turn all warnings into errors. It also makes it clearer to find usage of v8 in the library.
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Define.h')
-rw-r--r-- | fpdfsdk/include/javascript/JS_Define.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fpdfsdk/include/javascript/JS_Define.h b/fpdfsdk/include/javascript/JS_Define.h index c86289e640..81d44550c4 100644 --- a/fpdfsdk/include/javascript/JS_Define.h +++ b/fpdfsdk/include/javascript/JS_Define.h @@ -23,14 +23,14 @@ struct JSConstSpec struct JSPropertySpec
{
const wchar_t* pName;
- AccessorGetterCallback pPropGet;
- AccessorSetterCallback pPropPut;
+ v8::AccessorGetterCallback pPropGet;
+ v8::AccessorSetterCallback pPropPut;
};
struct JSMethodSpec
{
const wchar_t* pName;
- FunctionCallback pMethodCall;
+ v8::FunctionCallback pMethodCall;
unsigned nParamNum;
};
@@ -100,7 +100,7 @@ typedef CFX_WideString JS_ErrorString; v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
CJS_PropValue value(isolate);\
@@ -146,7 +146,7 @@ typedef CFX_WideString JS_ErrorString; v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
CJS_PropValue propValue(CJS_Value(isolate,value,VT_unknown));\
@@ -197,7 +197,7 @@ JS_STATIC_PROP_SET(prop_name, class_name) v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
CJS_Parameters parameters;\
@@ -403,7 +403,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\ v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
v8::String::Utf8Value utf8_value(property);\
@@ -451,7 +451,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\ v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
v8::String::Utf8Value utf8_value(property);\
@@ -498,7 +498,7 @@ const wchar_t * js_class_name::m_pClassName = JS_WIDESTRING(class_name);\ v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
v8::String::Utf8Value utf8_value(property);\
@@ -598,7 +598,7 @@ void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
CJS_Parameters parameters;\
@@ -651,7 +651,7 @@ static void fun_name##_static(JS_METHOD_ARGS)\ v8::Local<v8::Value> v = context->GetEmbedderData(1);\
ASSERT(!v.IsEmpty());\
if(v.IsEmpty()) return;\
- v8::Handle<External> field = v8::Handle<External>::Cast(v);\
+ v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(v);\
IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
IFXJS_Context* cc = pRuntime->GetCurrentContext();\
CJS_Parameters parameters;\
|