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

Side by Side Diff: core/fxcrt/include/fx_coordinates.h

Issue 1906903002: Replace CFX_RectArray with std::vector<CFX_FloatRect> (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove unused method Created 4 years, 8 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/fpdftext/include/cpdf_textpagefind.h ('k') | fpdfsdk/fpdftext.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 #ifndef CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_COORDINATES_H_
8 #define CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ 8 #define CORE_FXCRT_INCLUDE_FX_COORDINATES_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 FX_RECT ToFxRect() const { 303 FX_RECT ToFxRect() const {
304 return FX_RECT(static_cast<int32_t>(left), static_cast<int32_t>(top), 304 return FX_RECT(static_cast<int32_t>(left), static_cast<int32_t>(top),
305 static_cast<int32_t>(right), static_cast<int32_t>(bottom)); 305 static_cast<int32_t>(right), static_cast<int32_t>(bottom));
306 } 306 }
307 307
308 FX_FLOAT left; 308 FX_FLOAT left;
309 FX_FLOAT bottom; 309 FX_FLOAT bottom;
310 FX_FLOAT right; 310 FX_FLOAT right;
311 FX_FLOAT top; 311 FX_FLOAT top;
312 }; 312 };
313 using CFX_RectArray = CFX_ArrayTemplate<CFX_FloatRect>;
314 313
315 // LTWH rectangles (y-axis runs downwards). 314 // LTWH rectangles (y-axis runs downwards).
316 template <class baseType> 315 template <class baseType>
317 class CFX_RTemplate { 316 class CFX_RTemplate {
318 public: 317 public:
319 typedef CFX_PSTemplate<baseType> FXT_POINT; 318 typedef CFX_PSTemplate<baseType> FXT_POINT;
320 typedef CFX_PSTemplate<baseType> FXT_SIZE; 319 typedef CFX_PSTemplate<baseType> FXT_SIZE;
321 typedef CFX_VTemplate<baseType> FXT_VECTOR; 320 typedef CFX_VTemplate<baseType> FXT_VECTOR;
322 typedef CFX_RTemplate<baseType> FXT_RECT; 321 typedef CFX_RTemplate<baseType> FXT_RECT;
323 void Set(baseType left, baseType top, baseType width, baseType height) { 322 void Set(baseType left, baseType top, baseType width, baseType height) {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 public: 662 public:
664 FX_FLOAT a; 663 FX_FLOAT a;
665 FX_FLOAT b; 664 FX_FLOAT b;
666 FX_FLOAT c; 665 FX_FLOAT c;
667 FX_FLOAT d; 666 FX_FLOAT d;
668 FX_FLOAT e; 667 FX_FLOAT e;
669 FX_FLOAT f; 668 FX_FLOAT f;
670 }; 669 };
671 670
672 #endif // CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ 671 #endif // CORE_FXCRT_INCLUDE_FX_COORDINATES_H_
OLDNEW
« no previous file with comments | « core/fpdftext/include/cpdf_textpagefind.h ('k') | fpdfsdk/fpdftext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698