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

Unified Diff: xfa/include/fwl/theme/utils.h

Issue 1722873002: Remove many _CAPS structure names. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/include/fwl/core/fwl_widget.h ('k') | xfa/include/fxfa/fxfa_basic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/include/fwl/theme/utils.h
diff --git a/xfa/include/fwl/theme/utils.h b/xfa/include/fwl/theme/utils.h
index abbb47ef8fb08c451d51a7338b7dd069810dfdac..dd6549666d7eb91c795afd99f5a34ed36c3d3c9e 100644
--- a/xfa/include/fwl/theme/utils.h
+++ b/xfa/include/fwl/theme/utils.h
@@ -27,7 +27,7 @@ enum FWLTHEME_DIRECTION {
FWLTHEME_DIRECTION_Left,
FWLTHEME_DIRECTION_Right
};
-typedef struct _FWLCOLOR {
+struct FWLCOLOR {
union {
FX_DWORD color;
struct {
@@ -38,14 +38,13 @@ typedef struct _FWLCOLOR {
};
};
- _FWLCOLOR() { color = 0; }
- _FWLCOLOR(FX_DWORD c) { color = c; }
- _FWLCOLOR(const _FWLCOLOR& c) { color = c.color; }
-
- bool operator==(const _FWLCOLOR& frColor) { return color == frColor.color; }
+ FWLCOLOR() : color(0) {}
+ FWLCOLOR(FX_DWORD c) : color(c) {}
+ FWLCOLOR(const FWLCOLOR& c) : color(c.color) {}
+ bool operator==(const FWLCOLOR& frColor) { return color == frColor.color; }
operator FX_DWORD() { return color; }
-} FWLCOLOR;
+};
#define FWLTHEME_BEZIER FX_BEZIER
#define FWLTHEME_PI FX_PI
#define FWLTHEME_PI_2_1 (FX_PI / 2.0f)
« no previous file with comments | « xfa/include/fwl/core/fwl_widget.h ('k') | xfa/include/fxfa/fxfa_basic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698