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

Side by Side Diff: core/fpdfapi/fpdf_page/fpdf_page_func.cpp

Issue 2383543002: Move core/fpdfapi/fpdf_parser/include to core/fpdfapi/fpdf_parser (Closed)
Patch Set: 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 | « core/fpdfapi/fpdf_page/fpdf_page_doc.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_parser.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 "core/fpdfapi/fpdf_page/pageint.h" 7 #include "core/fpdfapi/fpdf_page/pageint.h"
8 8
9 #include <limits.h> 9 #include <limits.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <memory> 12 #include <memory>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "core/fpdfapi/fpdf_page/cpdf_psengine.h" 16 #include "core/fpdfapi/fpdf_page/cpdf_psengine.h"
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 17 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
18 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 18 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h" 19 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h"
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" 20 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h"
21 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" 21 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h"
22 #include "core/fxcrt/include/fx_safe_types.h" 22 #include "core/fxcrt/include/fx_safe_types.h"
23 #include "third_party/base/numerics/safe_conversions_impl.h" 23 #include "third_party/base/numerics/safe_conversions_impl.h"
24 24
25 class CPDF_PSOP { 25 class CPDF_PSOP {
26 public: 26 public:
27 explicit CPDF_PSOP(PDF_PSOP op) : m_op(op), m_value(0) { 27 explicit CPDF_PSOP(PDF_PSOP op) : m_op(op), m_value(0) {
28 ASSERT(m_op != PSOP_CONST); 28 ASSERT(m_op != PSOP_CONST);
29 ASSERT(m_op != PSOP_PROC); 29 ASSERT(m_op != PSOP_PROC);
30 } 30 }
31 explicit CPDF_PSOP(FX_FLOAT value) : m_op(PSOP_CONST), m_value(value) {} 31 explicit CPDF_PSOP(FX_FLOAT value) : m_op(PSOP_CONST), m_value(value) {}
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 return m_Type == Type::kType2ExpotentialInterpolation 837 return m_Type == Type::kType2ExpotentialInterpolation
838 ? static_cast<const CPDF_ExpIntFunc*>(this) 838 ? static_cast<const CPDF_ExpIntFunc*>(this)
839 : nullptr; 839 : nullptr;
840 } 840 }
841 841
842 const CPDF_StitchFunc* CPDF_Function::ToStitchFunc() const { 842 const CPDF_StitchFunc* CPDF_Function::ToStitchFunc() const {
843 return m_Type == Type::kType3Stitching 843 return m_Type == Type::kType3Stitching
844 ? static_cast<const CPDF_StitchFunc*>(this) 844 ? static_cast<const CPDF_StitchFunc*>(this)
845 : nullptr; 845 : nullptr;
846 } 846 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_doc.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698