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

Side by Side Diff: xfa/fxfa/fxfa.h

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years 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 | « xfa/fxfa/fm2js/xfa_fm2jscontext.cpp ('k') | xfa/fxfa/parser/cxfa_dataexporter.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 XFA_FXFA_FXFA_H_ 7 #ifndef XFA_FXFA_FXFA_H_
8 #define XFA_FXFA_FXFA_H_ 8 #define XFA_FXFA_FXFA_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcrt/cfx_retain_ptr.h"
12 #include "xfa/fxfa/fxfa_basic.h" 13 #include "xfa/fxfa/fxfa_basic.h"
13 #include "xfa/fxfa/fxfa_widget.h" 14 #include "xfa/fxfa/fxfa_widget.h"
14 15
15 class CFGAS_GEFont; 16 class CFGAS_GEFont;
16 class CFX_Graphics; 17 class CFX_Graphics;
17 class CPDF_Document; 18 class CPDF_Document;
18 class CXFA_FFPageView; 19 class CXFA_FFPageView;
19 class CXFA_Node; 20 class CXFA_Node;
20 class CXFA_NodeList; 21 class CXFA_NodeList;
21 class CXFA_WidgetAcc; 22 class CXFA_WidgetAcc;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual CFX_WideString Response(const CFX_WideString& wsQuestion, 224 virtual CFX_WideString Response(const CFX_WideString& wsQuestion,
224 const CFX_WideString& wsTitle = L"", 225 const CFX_WideString& wsTitle = L"",
225 const CFX_WideString& wsDefaultAnswer = L"", 226 const CFX_WideString& wsDefaultAnswer = L"",
226 bool bMask = true) = 0; 227 bool bMask = true) = 0;
227 228
228 /** 229 /**
229 * Download something from somewhere. 230 * Download something from somewhere.
230 * @param[in] wsURL - http, ftp, such as 231 * @param[in] wsURL - http, ftp, such as
231 * "http://www.w3.org/TR/REC-xml-names/". 232 * "http://www.w3.org/TR/REC-xml-names/".
232 */ 233 */
233 virtual IFX_SeekableReadStream* DownloadURL(const CFX_WideString& wsURL) = 0; 234 virtual CFX_RetainPtr<IFX_SeekableReadStream> DownloadURL(
235 const CFX_WideString& wsURL) = 0;
234 236
235 /** 237 /**
236 * POST data to the given url. 238 * POST data to the given url.
237 * @param[in] wsURL the URL being uploaded. 239 * @param[in] wsURL the URL being uploaded.
238 * @param[in] wsData the data being uploaded. 240 * @param[in] wsData the data being uploaded.
239 * @param[in] wsContentType the content type of data including text/html, 241 * @param[in] wsContentType the content type of data including text/html,
240 * text/xml, text/plain, multipart/form-data, 242 * text/xml, text/plain, multipart/form-data,
241 * application/x-www-form-urlencoded, 243 * application/x-www-form-urlencoded,
242 * application/octet-stream, any valid MIME type. 244 * application/octet-stream, any valid MIME type.
243 * @param[in] wsEncode the encode of data including UTF-8, UTF-16, 245 * @param[in] wsEncode the encode of data including UTF-8, UTF-16,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 uint32_t dwOptions) = 0; 315 uint32_t dwOptions) = 0;
314 virtual FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) = 0; 316 virtual FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) = 0;
315 317
316 virtual bool SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) = 0; 318 virtual bool SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) = 0;
317 virtual bool GetGlobalProperty(CXFA_FFDoc* hDoc, 319 virtual bool GetGlobalProperty(CXFA_FFDoc* hDoc,
318 const CFX_ByteStringC& szPropName, 320 const CFX_ByteStringC& szPropName,
319 CFXJSE_Value* pValue) = 0; 321 CFXJSE_Value* pValue) = 0;
320 virtual bool SetGlobalProperty(CXFA_FFDoc* hDoc, 322 virtual bool SetGlobalProperty(CXFA_FFDoc* hDoc,
321 const CFX_ByteStringC& szPropName, 323 const CFX_ByteStringC& szPropName,
322 CFXJSE_Value* pValue) = 0; 324 CFXJSE_Value* pValue) = 0;
323 virtual IFX_SeekableReadStream* OpenLinkedFile( 325 virtual CFX_RetainPtr<IFX_SeekableReadStream> OpenLinkedFile(
324 CXFA_FFDoc* hDoc, 326 CXFA_FFDoc* hDoc,
325 const CFX_WideString& wsLink) = 0; 327 const CFX_WideString& wsLink) = 0;
326 }; 328 };
327 329
328 class IXFA_WidgetIterator { 330 class IXFA_WidgetIterator {
329 public: 331 public:
330 virtual ~IXFA_WidgetIterator() {} 332 virtual ~IXFA_WidgetIterator() {}
331 333
332 virtual void Reset() = 0; 334 virtual void Reset() = 0;
333 virtual CXFA_FFWidget* MoveToFirst() = 0; 335 virtual CXFA_FFWidget* MoveToFirst() = 0;
334 virtual CXFA_FFWidget* MoveToLast() = 0; 336 virtual CXFA_FFWidget* MoveToLast() = 0;
335 virtual CXFA_FFWidget* MoveToNext() = 0; 337 virtual CXFA_FFWidget* MoveToNext() = 0;
336 virtual CXFA_FFWidget* MoveToPrevious() = 0; 338 virtual CXFA_FFWidget* MoveToPrevious() = 0;
337 virtual CXFA_FFWidget* GetCurrentWidget() = 0; 339 virtual CXFA_FFWidget* GetCurrentWidget() = 0;
338 virtual bool SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; 340 virtual bool SetCurrentWidget(CXFA_FFWidget* hWidget) = 0;
339 }; 341 };
340 342
341 #endif // XFA_FXFA_FXFA_H_ 343 #endif // XFA_FXFA_FXFA_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fm2jscontext.cpp ('k') | xfa/fxfa/parser/cxfa_dataexporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698