Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: fpdfsdk/include/javascript/IJavaScript.h

Issue 954923004: Kill off unused IFXJS interface methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | fpdfsdk/include/javascript/JS_Define.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _IJAVASCRIPT_H_ 7 #ifndef _IJAVASCRIPT_H_
8 #define _IJAVASCRIPT_H_ 8 #define _IJAVASCRIPT_H_
9 9
10 class IFXJS_Context 10 class IFXJS_Context
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 }; 67 };
68 68
69 class IFXJS_Runtime 69 class IFXJS_Runtime
70 { 70 {
71 public: 71 public:
72 virtual IFXJS_Context* NewContext() = 0; 72 virtual IFXJS_Context* NewContext() = 0;
73 virtual void ReleaseContext(IFXJS_Context * p Context) = 0; 73 virtual void ReleaseContext(IFXJS_Context * p Context) = 0;
74 virtual IFXJS_Context* GetCurrentContext() = 0; 74 virtual IFXJS_Context* GetCurrentContext() = 0;
75 75
76 virtual void SetReaderDocument(CPDFSDK_Docume nt* pReaderDoc) = 0; 76 virtual void SetReaderDocument(CPDFSDK_Docume nt* pReaderDoc) = 0;
77 » virtual»CPDFSDK_Document*» GetReaderDocument() = 0;» 77 » virtual»CPDFSDK_Document*» GetReaderDocument() = 0;
78
79 » virtual void» » » » GetObjectNames(CFX_WideStringArr ay& array) = 0;
80 » virtual void» » » » GetObjectConsts(const CFX_WideSt ring& swObjName, CFX_WideStringArray& array) = 0;
81 » virtual void» » » » GetObjectProps(const CFX_WideStr ing& swObjName, CFX_WideStringArray& array) = 0;
82 » virtual void» » » » GetObjectMethods(const CFX_WideS tring& swObjName, CFX_WideStringArray& array) = 0;
83
84 » virtual void» » » » Exit() = 0;
85 » virtual void» » » » Enter() = 0;
86 » virtual FX_BOOL»» » » IsEntered() = 0;
87 78
88 protected: 79 protected:
89 ~IFXJS_Runtime() { } 80 ~IFXJS_Runtime() { }
90 }; 81 };
91 82
92 class CPDFDoc_Environment; 83 class CPDFDoc_Environment;
93 class CJS_GlobalData; 84 class CJS_GlobalData;
94 85
95 class CJS_RuntimeFactory 86 class CJS_RuntimeFactory
96 { 87 {
97 public: 88 public:
98 CJS_RuntimeFactory():m_bInit(FALSE),m_nRef(0),m_pGlobalData(NULL),m_nGlo balDataCount(0) {} 89 CJS_RuntimeFactory():m_bInit(FALSE),m_nRef(0),m_pGlobalData(NULL),m_nGlo balDataCount(0) {}
99 ~CJS_RuntimeFactory(); 90 ~CJS_RuntimeFactory();
100 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Env ironment* pApp); 91 IFXJS_Runtime* NewJSRuntime(CPDFDoc_Env ironment* pApp);
101 void DeleteJSRuntime( IFXJS_Runtime* pRuntime); 92 void DeleteJSRuntime( IFXJS_Runtime* pRuntime);
102 void AddRef(); 93 void AddRef();
103 void Release(); 94 void Release();
104 95
105 CJS_GlobalData* NewGlobalData(CPDFDoc_En vironment* pApp); 96 CJS_GlobalData* NewGlobalData(CPDFDoc_En vironment* pApp);
106 void ReleaseGlobalDat a(); 97 void ReleaseGlobalDat a();
107 private: 98 private:
108 FX_BOOL m_bInit; 99 FX_BOOL m_bInit;
109 int m_nRef; 100 int m_nRef;
110 CJS_GlobalData* m_pGlobalData; 101 CJS_GlobalData* m_pGlobalData;
111 FX_INT32 m_nGlobalDataCou nt; 102 FX_INT32 m_nGlobalDataCou nt;
112 }; 103 };
113 104
114 #endif //_IJAVASCRIPT_H_ 105 #endif //_IJAVASCRIPT_H_
115 106
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/javascript/JS_Define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698