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

Side by Side Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

Issue 1296043002: Merge to XFA: Use override in more classes in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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
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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "../../../include/fpdfapi/fpdf_module.h" 10 #include "../../../include/fpdfapi/fpdf_module.h"
(...skipping 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 buffer[offset++] = ch; 2817 buffer[offset++] = ch;
2818 if (offset == size) { 2818 if (offset == size) {
2819 break; 2819 break;
2820 } 2820 }
2821 } 2821 }
2822 } 2822 }
2823 2823
2824 class CPDF_DataAvail final : public IPDF_DataAvail { 2824 class CPDF_DataAvail final : public IPDF_DataAvail {
2825 public: 2825 public:
2826 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); 2826 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead);
2827 ~CPDF_DataAvail(); 2827 ~CPDF_DataAvail() override;
2828 2828
2829 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) override; 2829 virtual FX_BOOL IsDocAvail(IFX_DownloadHints* pHints) override;
2830 2830
2831 virtual void SetDocument(CPDF_Document* pDoc) override; 2831 virtual void SetDocument(CPDF_Document* pDoc) override;
2832 2832
2833 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints* pHints) override; 2833 virtual FX_BOOL IsPageAvail(int iPage, IFX_DownloadHints* pHints) override;
2834 2834
2835 virtual int32_t IsFormAvail(IFX_DownloadHints* pHints) override; 2835 virtual int32_t IsFormAvail(IFX_DownloadHints* pHints) override;
2836 2836
2837 virtual int32_t IsLinearizedPDF() override; 2837 virtual int32_t IsLinearizedPDF() override;
(...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
4722 return FALSE; 4722 return FALSE;
4723 } 4723 }
4724 CPDF_PageNode::~CPDF_PageNode() { 4724 CPDF_PageNode::~CPDF_PageNode() {
4725 int32_t iSize = m_childNode.GetSize(); 4725 int32_t iSize = m_childNode.GetSize();
4726 for (int32_t i = 0; i < iSize; ++i) { 4726 for (int32_t i = 0; i < iSize; ++i) {
4727 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; 4727 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i];
4728 delete pNode; 4728 delete pNode;
4729 } 4729 }
4730 m_childNode.RemoveAll(); 4730 m_childNode.RemoveAll();
4731 } 4731 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698