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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1386173002: Rename IFXJS_Runtime and IFXJS_Context to IJS_. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Comment in fxjs_v8.h Created 5 years, 2 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/IJavaScript.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 FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } 202 FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; }
203 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; } 203 void SetSDKDocument(CPDFSDK_Document* pFXDoc) { m_pSDKDoc = pFXDoc; }
204 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; } 204 CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc; }
205 CPDF_Document* GetPDFDocument() const { return m_pPDFDoc; } 205 CPDF_Document* GetPDFDocument() const { return m_pPDFDoc; }
206 CFX_ByteString GetAppName() const { return ""; } 206 CFX_ByteString GetAppName() const { return ""; }
207 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler; } 207 IFX_SystemHandler* GetSysHandler() const { return m_pSysHandler; }
208 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } 208 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; }
209 209
210 CFFL_IFormFiller* GetIFormFiller(); // Creates if not present. 210 CFFL_IFormFiller* GetIFormFiller(); // Creates if not present.
211 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. 211 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present.
212 IFXJS_Runtime* GetJSRuntime(); // Creates if not present. 212 IJS_Runtime* GetJSRuntime(); // Creates if not present.
213 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. 213 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present.
214 214
215 private: 215 private:
216 CPDFSDK_AnnotHandlerMgr* m_pAnnotHandlerMgr; 216 CPDFSDK_AnnotHandlerMgr* m_pAnnotHandlerMgr;
217 CPDFSDK_ActionHandler* m_pActionHandler; 217 CPDFSDK_ActionHandler* m_pActionHandler;
218 nonstd::unique_ptr<IFXJS_Runtime> m_pJSRuntime; 218 nonstd::unique_ptr<IJS_Runtime> m_pJSRuntime;
219 FPDF_FORMFILLINFO* const m_pInfo; 219 FPDF_FORMFILLINFO* const m_pInfo;
220 CPDFSDK_Document* m_pSDKDoc; 220 CPDFSDK_Document* m_pSDKDoc;
221 CPDF_Document* const m_pPDFDoc; 221 CPDF_Document* const m_pPDFDoc;
222 CFFL_IFormFiller* m_pIFormFiller; 222 CFFL_IFormFiller* m_pIFormFiller;
223 IFX_SystemHandler* m_pSysHandler; 223 IFX_SystemHandler* m_pSysHandler;
224 }; 224 };
225 225
226 class CPDFSDK_Document { 226 class CPDFSDK_Document {
227 public: 227 public:
228 CPDFSDK_Document(CPDF_Document* pDoc, CPDFDoc_Environment* pEnv); 228 CPDFSDK_Document(CPDF_Document* pDoc, CPDFDoc_Environment* pEnv);
229 ~CPDFSDK_Document(); 229 ~CPDFSDK_Document();
230 230
231 CPDFSDK_InterForm* GetInterForm(); 231 CPDFSDK_InterForm* GetInterForm();
232 CPDF_Document* GetDocument() { return m_pDoc; } 232 CPDF_Document* GetDocument() { return m_pDoc; }
233 233
234 CPDFSDK_PageView* GetPageView(CPDF_Page* pPDFPage, FX_BOOL ReNew = TRUE); 234 CPDFSDK_PageView* GetPageView(CPDF_Page* pPDFPage, FX_BOOL ReNew = TRUE);
235 CPDFSDK_PageView* GetPageView(int nIndex); 235 CPDFSDK_PageView* GetPageView(int nIndex);
236 CPDFSDK_PageView* GetCurrentView(); 236 CPDFSDK_PageView* GetCurrentView();
237 void ReMovePageView(CPDF_Page* pPDFPage); 237 void ReMovePageView(CPDF_Page* pPDFPage);
238 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); 238 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
239 239
240 CPDFSDK_Annot* GetFocusAnnot(); 240 CPDFSDK_Annot* GetFocusAnnot();
241 241
242 IFXJS_Runtime* GetJsRuntime(); 242 IJS_Runtime* GetJsRuntime();
243 243
244 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0); 244 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0);
245 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0); 245 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0);
246 246
247 FX_BOOL ExtractPages(const CFX_WordArray& arrExtraPages, 247 FX_BOOL ExtractPages(const CFX_WordArray& arrExtraPages,
248 CPDF_Document* pDstDoc); 248 CPDF_Document* pDstDoc);
249 FX_BOOL InsertPages(int nInsertAt, 249 FX_BOOL InsertPages(int nInsertAt,
250 const CPDF_Document* pSrcDoc, 250 const CPDF_Document* pSrcDoc,
251 const CFX_WordArray& arrSrcPages); 251 const CFX_WordArray& arrSrcPages);
252 FX_BOOL ReplacePages(int nPage, 252 FX_BOOL ReplacePages(int nPage,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 if (nStartPos < m) 419 if (nStartPos < m)
420 QuickSort(nStartPos, m, bAscend, pCompare); 420 QuickSort(nStartPos, m, bAscend, pCompare);
421 if (nStopPos > m) 421 if (nStopPos > m)
422 QuickSort(m, nStopPos, bAscend, pCompare); 422 QuickSort(m, nStopPos, bAscend, pCompare);
423 } 423 }
424 }; 424 };
425 425
426 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 426 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/javascript/IJavaScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698