diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-25 14:54:36 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-25 14:54:36 -0800 |
commit | c7747879a30da1323a43db2307bdeba7aba5c3ed (patch) | |
tree | e39a11892a78ef242d489f6d01ae8d646084498f /fpdfsdk/include | |
parent | 8a7b669e3d3f3415fd1cf3da833089fe711078a8 (diff) | |
download | pdfium-c7747879a30da1323a43db2307bdeba7aba5c3ed.tar.xz |
Merge to XFA: Kill off unused IFXJS interface methods.
Original Review URL: https://codereview.chromium.org/954923004
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/952213004
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r-- | fpdfsdk/include/javascript/IJavaScript.h | 9 | ||||
-rw-r--r-- | fpdfsdk/include/javascript/JS_Define.h | 42 | ||||
-rw-r--r-- | fpdfsdk/include/javascript/JS_Runtime.h | 9 |
3 files changed, 1 insertions, 59 deletions
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h index 9d50b04e82..91fd9c6afb 100644 --- a/fpdfsdk/include/javascript/IJavaScript.h +++ b/fpdfsdk/include/javascript/IJavaScript.h @@ -74,16 +74,9 @@ public: virtual IFXJS_Context* GetCurrentContext() = 0; virtual void SetReaderDocument(CPDFSDK_Document* pReaderDoc) = 0; - virtual CPDFSDK_Document* GetReaderDocument() = 0; - virtual void GetObjectNames(CFX_WideStringArray& array) = 0; - virtual void GetObjectConsts(const CFX_WideString& swObjName, CFX_WideStringArray& array) = 0; - virtual void GetObjectProps(const CFX_WideString& swObjName, CFX_WideStringArray& array) = 0; - virtual void GetObjectMethods(const CFX_WideString& swObjName, CFX_WideStringArray& array) = 0; + virtual CPDFSDK_Document* GetReaderDocument() = 0; - virtual void Exit() = 0; - virtual void Enter() = 0; - virtual FX_BOOL IsEntered() = 0; virtual FX_BOOL GetHValueByName(FX_BSTR utf8Name, FXJSE_HVALUE hValue) = 0; virtual FX_BOOL SetHValueByName(FX_BSTR utf8Name, FXJSE_HVALUE hValue) = 0; diff --git a/fpdfsdk/include/javascript/JS_Define.h b/fpdfsdk/include/javascript/JS_Define.h index 72a481dfa4..fee16e41f1 100644 --- a/fpdfsdk/include/javascript/JS_Define.h +++ b/fpdfsdk/include/javascript/JS_Define.h @@ -167,9 +167,6 @@ void JSMethod(const char* method_name_string, static JSBool JSConstructor(IFXJS_Context* cc, JSFXObject obj,JSFXObject global);\ static JSBool JSDestructor(JSFXObject obj);\ static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\ - static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ - static void GetProperties(JSPropertySpec*& pProperties, int& nSize);\ - static void GetMethods(JSMethodSpec*& pMethods, int& nSize);\ static JSConstSpec JS_Class_Consts[];\ static JSPropertySpec JS_Class_Properties[];\ static JSMethodSpec JS_Class_Methods[];\ @@ -211,21 +208,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ return nObjDefnID;\ }\ return -1;\ -}\ -void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ -{\ - pConsts = JS_Class_Consts;\ - nSize = sizeof(JS_Class_Consts) / sizeof(JSConstSpec) - 1;\ -}\ -void js_class_name::GetProperties(JSPropertySpec*& pProperties, int& nSize)\ -{\ - pProperties = JS_Class_Properties;\ - nSize = sizeof(JS_Class_Properties) / sizeof(JSPropertySpec) - 1;\ -}\ -void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ -{\ - pMethods = JS_Class_Methods;\ - nSize = sizeof(JS_Class_Methods) / sizeof(JSMethodSpec) - 1;\ } #define IMPLEMENT_JS_CLASS(js_class_name, class_name) IMPLEMENT_JS_CLASS_RICH(js_class_name, class_name, class_name) @@ -234,7 +216,6 @@ void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ #define DECLARE_JS_CLASS_CONST() \ static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\ - static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ static JSConstSpec JS_Class_Consts[];\ static const wchar_t* m_pClassName @@ -259,11 +240,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ return nObjDefnID;\ }\ return -1;\ -}\ -void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ -{\ - pConsts = JS_Class_Consts;\ - nSize = sizeof(JS_Class_Consts)/sizeof(JSConstSpec)-1;\ } /* ===================================== SPECIAL JS CLASS =============================================== */ @@ -349,9 +325,6 @@ void JSSpecialPropDel(const char* class_name, #define DECLARE_SPECIAL_JS_CLASS(js_class_name) \ static JSBool JSConstructor(IFXJS_Context* cc, JSFXObject obj, JSFXObject global);\ static JSBool JSDestructor(JSFXObject obj);\ - static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ - static void GetProperties(JSPropertySpec*& pProperties, int& nSize);\ - static void GetMethods(JSMethodSpec*& pMethods, int& nSize);\ static JSConstSpec JS_Class_Consts[];\ static JSPropertySpec JS_Class_Properties[];\ static JSMethodSpec JS_Class_Methods[];\ @@ -416,21 +389,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ }\ \ return -1;\ -}\ -void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ -{\ - pConsts = JS_Class_Consts;\ - nSize = sizeof(JS_Class_Consts)/sizeof(JSConstSpec)-1;\ -}\ -void js_class_name::GetProperties(JSPropertySpec*& pProperties, int& nSize)\ -{\ - pProperties = JS_Class_Properties;\ - nSize = sizeof(JS_Class_Properties)/sizeof(JSPropertySpec)-1;\ -}\ -void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ -{\ - pMethods = JS_Class_Methods;\ - nSize = sizeof(JS_Class_Methods)/sizeof(JSMethodSpec)-1;\ } /* ======================================== GLOBAL METHODS ============================================ */ diff --git a/fpdfsdk/include/javascript/JS_Runtime.h b/fpdfsdk/include/javascript/JS_Runtime.h index 217a985869..96f00bbbb1 100644 --- a/fpdfsdk/include/javascript/JS_Runtime.h +++ b/fpdfsdk/include/javascript/JS_Runtime.h @@ -28,15 +28,6 @@ public: virtual void SetReaderDocument(CPDFSDK_Document *pReaderDoc); virtual CPDFSDK_Document * GetReaderDocument(){return m_pDocument;} - virtual void GetObjectNames(CFX_WideStringArray& array); - virtual void GetObjectConsts(const CFX_WideString& swObjName, CFX_WideStringArray& array); - virtual void GetObjectProps(const CFX_WideString& swObjName, CFX_WideStringArray& array); - virtual void GetObjectMethods(const CFX_WideString& swObjName, CFX_WideStringArray& array); - - virtual void Exit(); - virtual void Enter(); - virtual FX_BOOL IsEntered(); - CPDFDoc_Environment * GetReaderApp(){return m_pApp;} FX_BOOL InitJSObjects(); |