diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-26 09:40:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 09:40:27 -0700 |
commit | 7f2abcc015583e63cceb52acde757cb2111420bd (patch) | |
tree | e8dc22bf5164f0c703ff4dda86447b85002c865d /xfa/fxjse/value.h | |
parent | cfaffc09b1d62a81679fb01b0cc85e050be969b7 (diff) | |
download | pdfium-7f2abcc015583e63cceb52acde757cb2111420bd.tar.xz |
Replace FXJSE_HCONTEXT with CFXJSE_Context*
This Cl removes FXJSE_HCONTEXT and replaces it with the concrete CFXJSE_Context.
All varibles have been updated as well to match the new type.
Review-Url: https://codereview.chromium.org/2013963005
Diffstat (limited to 'xfa/fxjse/value.h')
-rw-r--r-- | xfa/fxjse/value.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/xfa/fxjse/value.h b/xfa/fxjse/value.h index 2939ac34f7..576d092bce 100644 --- a/xfa/fxjse/value.h +++ b/xfa/fxjse/value.h @@ -13,12 +13,6 @@ class CFXJSE_Value { public: CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} - protected: - CFXJSE_Value(); - CFXJSE_Value(const CFXJSE_Value&); - CFXJSE_Value& operator=(const CFXJSE_Value&); - - public: V8_INLINE FX_BOOL IsUndefined() const { if (m_hValue.IsEmpty()) { return FALSE; @@ -110,7 +104,6 @@ class CFXJSE_Value { return hValue->IsDate(); } - public: V8_INLINE FX_BOOL ToBoolean() const { ASSERT(!m_hValue.IsEmpty()); CFXJSE_ScopeUtil_IsolateHandleRootContext scope(m_pIsolate); @@ -150,7 +143,6 @@ class CFXJSE_Value { } void* ToObject(CFXJSE_Class* lpClass) const; - public: V8_INLINE void SetUndefined() { CFXJSE_ScopeUtil_IsolateHandle scope(m_pIsolate); v8::Local<v8::Value> hValue = v8::Undefined(m_pIsolate); @@ -194,7 +186,6 @@ class CFXJSE_Value { void SetArray(uint32_t uValueCount, CFXJSE_Value** rgValues); void SetDate(double dDouble); - public: FX_BOOL GetObjectProperty(const CFX_ByteStringC& szPropName, CFXJSE_Value* lpPropValue); FX_BOOL SetObjectProperty(const CFX_ByteStringC& szPropName, @@ -212,7 +203,6 @@ class CFXJSE_Value { uint32_t nArgCount, FXJSE_HVALUE* lpArgs); - public: V8_INLINE v8::Isolate* GetIsolate() const { return m_pIsolate; } V8_INLINE const v8::Global<v8::Value>& DirectGetValue() const { return m_hValue; @@ -228,14 +218,18 @@ class CFXJSE_Value { } } - public: static CFXJSE_Value* Create(v8::Isolate* pIsolate); - protected: + private: + friend class CFXJSE_Class; + friend class CFXJSE_Context; + + CFXJSE_Value(); + CFXJSE_Value(const CFXJSE_Value&); + CFXJSE_Value& operator=(const CFXJSE_Value&); + v8::Isolate* m_pIsolate; v8::Global<v8::Value> m_hValue; - friend class CFXJSE_Context; - friend class CFXJSE_Class; }; #endif // XFA_FXJSE_VALUE_H_ |