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

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

Issue 933043002: Kill off unused IFXJS interface methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: More unused code Created 5 years, 10 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 | « fpdfsdk/include/javascript/JS_Define.h ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('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 _JS_RUNTIME_H_ 7 #ifndef _JS_RUNTIME_H_
8 #define _JS_RUNTIME_H_ 8 #define _JS_RUNTIME_H_
9 9
10 class CJS_FieldEvent 10 class CJS_FieldEvent
(...skipping 10 matching lines...) Expand all
21 CJS_Runtime(CPDFDoc_Environment * pApp); 21 CJS_Runtime(CPDFDoc_Environment * pApp);
22 virtual ~CJS_Runtime(); 22 virtual ~CJS_Runtime();
23 23
24 virtual IFXJS_Context * NewContext(); 24 virtual IFXJS_Context * NewContext();
25 virtual void ReleaseC ontext(IFXJS_Context * pContext); 25 virtual void ReleaseC ontext(IFXJS_Context * pContext);
26 virtual IFXJS_Context* GetCurrentContex t(); 26 virtual IFXJS_Context* GetCurrentContex t();
27 27
28 virtual void SetReade rDocument(CPDFSDK_Document *pReaderDoc); 28 virtual void SetReade rDocument(CPDFSDK_Document *pReaderDoc);
29 virtual CPDFSDK_Document * GetReaderDocumen t(){return m_pDocument;} 29 virtual CPDFSDK_Document * GetReaderDocumen t(){return m_pDocument;}
30 30
31 virtual void GetObjec tNames(CFX_WideStringArray& array);
32 virtual void GetObjec tConsts(const CFX_WideString& swObjName, CFX_WideStringArray& array);
33 virtual void GetObjec tProps(const CFX_WideString& swObjName, CFX_WideStringArray& array);
34 virtual void GetObjec tMethods(const CFX_WideString& swObjName, CFX_WideStringArray& array);
35
36 virtual void Exit();
37 virtual void Enter();
38 virtual FX_BOOL IsEntere d();
39
40 CPDFDoc_Environment * GetReaderApp(){r eturn m_pApp;} 31 CPDFDoc_Environment * GetReaderApp(){r eturn m_pApp;}
41 32
42 FX_BOOL InitJSObjects(); 33 FX_BOOL InitJSObjects();
43 34
44 FX_BOOL AddEventToLoop(const CFX_WideString& sTargetName, JS_EVENT_T eEventType); 35 FX_BOOL AddEventToLoop(const CFX_WideString& sTargetName, JS_EVENT_T eEventType);
45 void RemoveEventInLoop(const CFX_WideString& sTargetName, JS_EVENT_T eEventType); 36 void RemoveEventInLoop(const CFX_WideString& sTargetName, JS_EVENT_T eEventType);
46 void RemoveEventsInLoop(CJS_FieldEvent* pStart); 37 void RemoveEventsInLoop(CJS_FieldEvent* pStart);
47 38
48 void BeginBlock(){m_bBlocking = TRUE;} 39 void BeginBlock(){m_bBlocking = TRUE;}
49 void EndBlock(){m_bBlocking = FALSE;} 40 void EndBlock(){m_bBlocking = FALSE;}
(...skipping 15 matching lines...) Expand all
65 FX_BOOL m_bBlocking; 56 FX_BOOL m_bBlocking;
66 CJS_FieldEvent* m_pField EventPath; 57 CJS_FieldEvent* m_pField EventPath;
67 58
68 v8::Isolate* m_isolat e; 59 v8::Isolate* m_isolat e;
69 v8::Persistent<v8::Context> m_context; 60 v8::Persistent<v8::Context> m_context;
70 FX_BOOL m_bRegistered; 61 FX_BOOL m_bRegistered;
71 }; 62 };
72 63
73 #endif //_JS_RUNTIME_H_ 64 #endif //_JS_RUNTIME_H_
74 65
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/JS_Define.h ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698