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

Side by Side Diff: core/fpdftext/cpdf_textpage.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (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/fpdfdoc/doc_tagged.cpp ('k') | core/fxcodec/codec/fx_codec_jbig.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/fpdftext/cpdf_textpage.h" 7 #include "core/fpdftext/cpdf_textpage.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fpdfapi/font/cpdf_font.h" 13 #include "core/fpdfapi/font/cpdf_font.h"
14 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
15 #include "core/fpdfapi/fpdf_parser/cpdf_string.h"
16 #include "core/fpdfapi/page/cpdf_form.h" 14 #include "core/fpdfapi/page/cpdf_form.h"
17 #include "core/fpdfapi/page/cpdf_formobject.h" 15 #include "core/fpdfapi/page/cpdf_formobject.h"
18 #include "core/fpdfapi/page/cpdf_page.h" 16 #include "core/fpdfapi/page/cpdf_page.h"
19 #include "core/fpdfapi/page/cpdf_pageobject.h" 17 #include "core/fpdfapi/page/cpdf_pageobject.h"
20 #include "core/fpdfapi/page/cpdf_textobject.h" 18 #include "core/fpdfapi/page/cpdf_textobject.h"
19 #include "core/fpdfapi/parser/cpdf_dictionary.h"
20 #include "core/fpdfapi/parser/cpdf_string.h"
21 #include "core/fpdftext/unicodenormalizationdata.h" 21 #include "core/fpdftext/unicodenormalizationdata.h"
22 #include "core/fxcrt/fx_bidi.h" 22 #include "core/fxcrt/fx_bidi.h"
23 #include "core/fxcrt/fx_ext.h" 23 #include "core/fxcrt/fx_ext.h"
24 #include "core/fxcrt/fx_ucd.h" 24 #include "core/fxcrt/fx_ucd.h"
25 #include "third_party/base/stl_util.h" 25 #include "third_party/base/stl_util.h"
26 26
27 namespace { 27 namespace {
28 28
29 const FX_FLOAT kDefaultFontSize = 1.0f; 29 const FX_FLOAT kDefaultFontSize = 1.0f;
30 const uint16_t* const g_UnicodeData_Normalization_Maps[5] = { 30 const uint16_t* const g_UnicodeData_Normalization_Maps[5] = {
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 info.m_OriginY); 1532 info.m_OriginY);
1533 return TRUE; 1533 return TRUE;
1534 } 1534 }
1535 1535
1536 FX_BOOL CPDF_TextPage::IsRectIntersect(const CFX_FloatRect& rect1, 1536 FX_BOOL CPDF_TextPage::IsRectIntersect(const CFX_FloatRect& rect1,
1537 const CFX_FloatRect& rect2) { 1537 const CFX_FloatRect& rect2) {
1538 CFX_FloatRect rect = rect1; 1538 CFX_FloatRect rect = rect1;
1539 rect.Intersect(rect2); 1539 rect.Intersect(rect2);
1540 return !rect.IsEmpty(); 1540 return !rect.IsEmpty();
1541 } 1541 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/doc_tagged.cpp ('k') | core/fxcodec/codec/fx_codec_jbig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698