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

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

Issue 1743753002: Revert "Replace CPDF_Rect and CPDF_Point with CFX types." (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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/include/fpdftext/fpdf_text.h ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.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_INCLUDE_FXCRT_FX_COORDINATES_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_COORDINATES_H_
8 #define CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ 8 #define CORE_INCLUDE_FXCRT_FX_COORDINATES_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 }; 408 };
409 struct FX_SMALL_RECT { 409 struct FX_SMALL_RECT {
410 int16_t Left; 410 int16_t Left;
411 411
412 int16_t Top; 412 int16_t Top;
413 413
414 int16_t Right; 414 int16_t Right;
415 415
416 int16_t Bottom; 416 int16_t Bottom;
417 }; 417 };
418
419 class CFX_FloatPoint {
420 public:
421 CFX_FloatPoint(FX_FLOAT xx, FX_FLOAT yy) : x(xx), y(xx) {}
422
423 FX_FLOAT x;
424 FX_FLOAT y;
425 };
426
427 class CFX_FloatRect { 418 class CFX_FloatRect {
428 public: 419 public:
429 CFX_FloatRect() { left = right = bottom = top = 0; } 420 CFX_FloatRect() { left = right = bottom = top = 0; }
430 421
431 CFX_FloatRect(FX_FLOAT left1, 422 CFX_FloatRect(FX_FLOAT left1,
432 FX_FLOAT bottom1, 423 FX_FLOAT bottom1,
433 FX_FLOAT right1, 424 FX_FLOAT right1,
434 FX_FLOAT top1) { 425 FX_FLOAT top1) {
435 left = left1; 426 left = left1;
436 bottom = bottom1; 427 bottom = bottom1;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 public: 657 public:
667 FX_FLOAT a; 658 FX_FLOAT a;
668 FX_FLOAT b; 659 FX_FLOAT b;
669 FX_FLOAT c; 660 FX_FLOAT c;
670 FX_FLOAT d; 661 FX_FLOAT d;
671 FX_FLOAT e; 662 FX_FLOAT e;
672 FX_FLOAT f; 663 FX_FLOAT f;
673 }; 664 };
674 665
675 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ 666 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_
OLDNEW
« no previous file with comments | « core/include/fpdftext/fpdf_text.h ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698