| Index: fpdfsdk/include/javascript/JS_Value.h
|
| diff --git a/fpdfsdk/include/javascript/JS_Value.h b/fpdfsdk/include/javascript/JS_Value.h
|
| index ecd0f832d49ce60aaf2abc08cffc5b9e1bbbf5d8..faa612d21ef245dc986688664394384871a4ee64 100644
|
| --- a/fpdfsdk/include/javascript/JS_Value.h
|
| +++ b/fpdfsdk/include/javascript/JS_Value.h
|
| @@ -19,7 +19,7 @@ class CJS_Value
|
| {
|
| public:
|
| CJS_Value(v8::Isolate* isolate);
|
| - CJS_Value(v8::Isolate* isolate, v8::Handle<v8::Value> pValue,FXJSVALUETYPE t);
|
| + CJS_Value(v8::Isolate* isolate, v8::Local<v8::Value> pValue,FXJSVALUETYPE t);
|
| CJS_Value(v8::Isolate* isolate, const int &iValue);
|
| CJS_Value(v8::Isolate* isolate, const double &dValue);
|
| CJS_Value(v8::Isolate* isolate, const float &fValue);
|
| @@ -34,7 +34,7 @@ public:
|
| ~CJS_Value();
|
|
|
| void SetNull();
|
| - void Attach(v8::Handle<v8::Value> pValue,FXJSVALUETYPE t);
|
| + void Attach(v8::Local<v8::Value> pValue,FXJSVALUETYPE t);
|
| void Attach(CJS_Value *pValue);
|
| void Detach();
|
|
|
| @@ -46,9 +46,9 @@ public:
|
| CJS_Object* ToCJSObject() const;
|
| CFX_WideString ToCFXWideString() const;
|
| CFX_ByteString ToCFXByteString() const;
|
| - v8::Handle<v8::Object> ToV8Object() const;
|
| - v8::Handle<v8::Array> ToV8Array() const;
|
| - v8::Handle<v8::Value> ToV8Value() const;
|
| + v8::Local<v8::Object> ToV8Object() const;
|
| + v8::Local<v8::Array> ToV8Array() const;
|
| + v8::Local<v8::Value> ToV8Value() const;
|
|
|
| void operator = (int iValue);
|
| void operator = (bool bValue);
|
| @@ -56,7 +56,7 @@ public:
|
| void operator = (float);
|
| void operator = (CJS_Object*);
|
| void operator = (CJS_Document*);
|
| - void operator = (v8::Handle<v8::Object>);
|
| + void operator = (v8::Local<v8::Object>);
|
| void operator = (CJS_Array &);
|
| void operator = (CJS_Date &);
|
| void operator = (FX_LPCWSTR pWstr);
|
| @@ -72,7 +72,7 @@ public:
|
|
|
| v8::Isolate* GetIsolate() {return m_isolate;}
|
| protected:
|
| - v8::Handle<v8::Value> m_pValue;
|
| + v8::Local<v8::Value> m_pValue;
|
| FXJSVALUETYPE m_eType;
|
| v8::Isolate* m_isolate;
|
| };
|
| @@ -118,7 +118,7 @@ public:
|
| void operator<<(CJS_Array& array);
|
| void operator<<(CJS_Date& date);
|
| void operator>>(CJS_Date& date) const;
|
| - operator v8::Handle<v8::Value>() const;
|
| + operator v8::Local<v8::Value>() const;
|
| void StartSetting();
|
| void StartGetting();
|
| private:
|
| @@ -131,16 +131,16 @@ public:
|
| CJS_Array(v8::Isolate* isolate);
|
| virtual ~CJS_Array();
|
|
|
| - void Attach(v8::Handle<v8::Array> pArray);
|
| + void Attach(v8::Local<v8::Array> pArray);
|
| void GetElement(unsigned index,CJS_Value &value);
|
| void SetElement(unsigned index,CJS_Value value);
|
| int GetLength();
|
| FX_BOOL IsAttached();
|
| - operator v8::Handle<v8::Array>();
|
| + operator v8::Local<v8::Array>();
|
|
|
| v8::Isolate* GetIsolate() {return m_isolate;}
|
| private:
|
| - v8::Handle<v8::Array> m_pArray;
|
| + v8::Local<v8::Array> m_pArray;
|
| v8::Isolate* m_isolate;
|
| };
|
|
|
| @@ -152,7 +152,7 @@ public:
|
| CJS_Date(v8::Isolate* isolate,double dMsec_time);
|
| CJS_Date(v8::Isolate* isolate,int year, int mon, int day,int hour, int min, int sec);
|
| virtual ~CJS_Date();
|
| - void Attach(v8::Handle<v8::Value> pDate);
|
| + void Attach(v8::Local<v8::Value> pDate);
|
|
|
| int GetYear();
|
| void SetYear(int iYear);
|
| @@ -172,7 +172,7 @@ public:
|
| int GetSeconds();
|
| void SetSeconds(int seconds);
|
|
|
| - operator v8::Handle<v8::Value>();
|
| + operator v8::Local<v8::Value>();
|
| operator double() const;
|
|
|
| CFX_WideString ToString() const;
|
| @@ -182,7 +182,7 @@ public:
|
| FX_BOOL IsValidDate();
|
|
|
| protected:
|
| - v8::Handle<v8::Value> m_pDate;
|
| + v8::Local<v8::Value> m_pDate;
|
| v8::Isolate* m_isolate;
|
| };
|
|
|
|
|