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

Side by Side Diff: xfa/fxfa/app/xfa_ffdoc.cpp

Issue 2383593002: Move xfa/fxfa/include to xfa/fxfa (Closed)
Patch Set: Rebase to master Created 4 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 | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffdochandler.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 #include "xfa/fxfa/include/xfa_ffdoc.h" 7 #include "xfa/fxfa/xfa_ffdoc.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" 11 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" 12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
13 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" 13 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h"
14 #include "core/fpdfdoc/cpdf_nametree.h" 14 #include "core/fpdfdoc/cpdf_nametree.h"
15 #include "core/fxcrt/fx_ext.h" 15 #include "core/fxcrt/fx_ext.h"
16 #include "core/fxcrt/fx_memory.h" 16 #include "core/fxcrt/fx_memory.h"
17 #include "xfa/fde/xml/fde_xml_imp.h" 17 #include "xfa/fde/xml/fde_xml_imp.h"
18 #include "xfa/fwl/core/fwl_noteimp.h" 18 #include "xfa/fwl/core/fwl_noteimp.h"
19 #include "xfa/fxfa/app/xfa_ffnotify.h" 19 #include "xfa/fxfa/app/xfa_ffnotify.h"
20 #include "xfa/fxfa/include/xfa_checksum.h"
21 #include "xfa/fxfa/include/xfa_ffapp.h"
22 #include "xfa/fxfa/include/xfa_ffdocview.h"
23 #include "xfa/fxfa/include/xfa_ffwidget.h"
24 #include "xfa/fxfa/include/xfa_fontmgr.h"
25 #include "xfa/fxfa/parser/cxfa_dataexporter.h" 20 #include "xfa/fxfa/parser/cxfa_dataexporter.h"
26 #include "xfa/fxfa/parser/cxfa_dataimporter.h" 21 #include "xfa/fxfa/parser/cxfa_dataimporter.h"
27 #include "xfa/fxfa/parser/cxfa_document.h" 22 #include "xfa/fxfa/parser/cxfa_document.h"
23 #include "xfa/fxfa/xfa_checksum.h"
24 #include "xfa/fxfa/xfa_ffapp.h"
25 #include "xfa/fxfa/xfa_ffdocview.h"
26 #include "xfa/fxfa/xfa_ffwidget.h"
27 #include "xfa/fxfa/xfa_fontmgr.h"
28 28
29 namespace { 29 namespace {
30 30
31 struct FX_BASE64DATA { 31 struct FX_BASE64DATA {
32 uint32_t data1 : 2; 32 uint32_t data1 : 2;
33 uint32_t data2 : 6; 33 uint32_t data2 : 6;
34 uint32_t data3 : 4; 34 uint32_t data3 : 4;
35 uint32_t data4 : 4; 35 uint32_t data4 : 4;
36 uint32_t data5 : 6; 36 uint32_t data5 : 6;
37 uint32_t data6 : 2; 37 uint32_t data6 : 2;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 return !!pExport->Export( 444 return !!pExport->Export(
445 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr); 445 pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr);
446 } 446 }
447 447
448 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) { 448 FX_BOOL CXFA_FFDoc::ImportData(IFX_FileRead* pStream, FX_BOOL bXDP) {
449 std::unique_ptr<CXFA_DataImporter> importer( 449 std::unique_ptr<CXFA_DataImporter> importer(
450 new CXFA_DataImporter(m_pDocumentParser->GetDocument())); 450 new CXFA_DataImporter(m_pDocumentParser->GetDocument()));
451 return importer->ImportData(pStream); 451 return importer->ImportData(pStream);
452 } 452 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_ffdochandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698