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

Side by Side Diff: core/fpdfapi/fpdf_font/fpdf_font.cpp

Issue 2376153004: Move core/fpdfapi/include to core/fpdfapi (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 | « core/fpdfapi/fpdf_font/cpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_cid.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_font/font_int.h" 7 #include "core/fpdfapi/fpdf_font/font_int.h"
8 8
9 #include "core/fpdfapi/cpdf_modulemgr.h"
9 #include "core/fpdfapi/fpdf_page/cpdf_form.h" 10 #include "core/fpdfapi/fpdf_page/cpdf_form.h"
10 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" 11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h"
11 #include "core/fpdfapi/fpdf_page/pageint.h" 12 #include "core/fpdfapi/fpdf_page/pageint.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" 13 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
13 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" 14 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
14 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" 15 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
15 #include "core/fpdfapi/fpdf_parser/cpdf_name.h" 16 #include "core/fpdfapi/fpdf_parser/cpdf_name.h"
16 #include "core/fpdfapi/fpdf_parser/cpdf_number.h" 17 #include "core/fpdfapi/fpdf_parser/cpdf_number.h"
17 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" 18 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h"
18 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" 19 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h"
19 #include "core/fpdfapi/include/cpdf_modulemgr.h"
20 #include "core/fxcrt/include/fx_ext.h" 20 #include "core/fxcrt/include/fx_ext.h"
21 #include "core/fxge/include/fx_freetype.h" 21 #include "core/fxge/include/fx_freetype.h"
22 #include "third_party/base/numerics/safe_conversions.h" 22 #include "third_party/base/numerics/safe_conversions.h"
23 #include "third_party/base/stl_util.h" 23 #include "third_party/base/stl_util.h"
24 24
25 int TT2PDF(int m, FXFT_Face face) { 25 int TT2PDF(int m, FXFT_Face face) {
26 int upm = FXFT_Get_Face_UnitsPerEM(face); 26 int upm = FXFT_Get_Face_UnitsPerEM(face);
27 if (upm == 0) 27 if (upm == 0)
28 return m; 28 return m;
29 return pdfium::base::checked_cast<int>( 29 return pdfium::base::checked_cast<int>(
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 if (cid_set) { 299 if (cid_set) {
300 m_pBaseMap = CPDF_ModuleMgr::Get() 300 m_pBaseMap = CPDF_ModuleMgr::Get()
301 ->GetPageModule() 301 ->GetPageModule()
302 ->GetFontGlobals() 302 ->GetFontGlobals()
303 ->m_CMapManager.GetCID2UnicodeMap(cid_set, FALSE); 303 ->m_CMapManager.GetCID2UnicodeMap(cid_set, FALSE);
304 } else { 304 } else {
305 m_pBaseMap = nullptr; 305 m_pBaseMap = nullptr;
306 } 306 }
307 } 307 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698