summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_class.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-28 23:12:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-28 23:12:22 +0000
commitda379c7af512aa7baa221d38b04c8aa9912b4e02 (patch)
tree2d98da7f03c36051aa96a372126020fc3eb94c12 /fxjs/cfxjse_class.h
parentcf59f804ea8bc83fe0d70148de15a3b5cedc801f (diff)
downloadpdfium-da379c7af512aa7baa221d38b04c8aa9912b4e02.tar.xz
Stop using deprecated v8::ObjectTemplate::NewInstance().
Fix nits in affected files. Change-Id: I3a0363c9b7c28359fd1c7cea305e4f7705a228c2 Reviewed-on: https://pdfium-review.googlesource.com/41355 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_class.h')
-rw-r--r--fxjs/cfxjse_class.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/fxjs/cfxjse_class.h b/fxjs/cfxjse_class.h
index 056525f30b..fd9786ea3b 100644
--- a/fxjs/cfxjse_class.h
+++ b/fxjs/cfxjse_class.h
@@ -20,11 +20,6 @@ class CFXJSE_Class {
const FXJSE_CLASS_DESCRIPTOR* lpClassDefintion,
bool bIsJSGlobal);
- static void SetUpNamedPropHandler(
- v8::Isolate* pIsolate,
- v8::Local<v8::ObjectTemplate>& hObjectTemplate,
- const FXJSE_CLASS_DESCRIPTOR* lpClassDefinition);
-
explicit CFXJSE_Class(CFXJSE_Context* lpContext);
~CFXJSE_Class();
@@ -32,12 +27,13 @@ class CFXJSE_Class {
v8::Global<v8::FunctionTemplate>& GetTemplate() { return m_hTemplate; }
protected:
+ friend class CFXJSE_Context;
+ friend class CFXJSE_Value;
+
ByteString m_szClassName;
UnownedPtr<const FXJSE_CLASS_DESCRIPTOR> m_lpClassDefinition;
- UnownedPtr<CFXJSE_Context> m_pContext;
+ UnownedPtr<CFXJSE_Context> const m_pContext;
v8::Global<v8::FunctionTemplate> m_hTemplate;
- friend class CFXJSE_Context;
- friend class CFXJSE_Value;
};
#endif // FXJS_CFXJSE_CLASS_H_