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

Unified Diff: xfa/fwl/theme/cfwl_utils.h

Issue 1874963002: Remove some FWL code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/theme/cfwl_scrollbartp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/theme/cfwl_utils.h
diff --git a/xfa/fwl/theme/cfwl_utils.h b/xfa/fwl/theme/cfwl_utils.h
index d530b7631b37d71b6180da760974c68154c2e49b..f2aa381d63e433590c6838b1d169f372bac56711 100644
--- a/xfa/fwl/theme/cfwl_utils.h
+++ b/xfa/fwl/theme/cfwl_utils.h
@@ -9,46 +9,28 @@
#include "core/fxcrt/include/fx_system.h"
-#define THEME_XPSimilar
enum FWLTHEME_EDGE {
FWLTHEME_EDGE_Flat = 0,
FWLTHEME_EDGE_Raised,
FWLTHEME_EDGE_Sunken
};
+
enum FWLTHEME_STATE {
FWLTHEME_STATE_Normal = 1,
FWLTHEME_STATE_Hover,
FWLTHEME_STATE_Pressed,
FWLTHEME_STATE_Disabale
};
+
enum FWLTHEME_DIRECTION {
FWLTHEME_DIRECTION_Up = 0,
FWLTHEME_DIRECTION_Down,
FWLTHEME_DIRECTION_Left,
FWLTHEME_DIRECTION_Right
};
-struct FWLCOLOR {
- union {
- uint32_t color;
- struct {
- uint8_t b;
- uint8_t g;
- uint8_t r;
- uint8_t a;
- };
- };
- FWLCOLOR() : color(0) {}
- FWLCOLOR(uint32_t c) : color(c) {}
- FWLCOLOR(const FWLCOLOR& c) : color(c.color) {}
-
- bool operator==(const FWLCOLOR& frColor) { return color == frColor.color; }
- operator uint32_t() { return color; }
-};
#define FWLTHEME_BEZIER FX_BEZIER
#define FWLTHEME_PI FX_PI
-#define FWLTHEME_PI_2_1 (FX_PI / 2.0f)
-#define FWLTHEME_PI_2_3 (3.0f * FX_PI / 2.0f)
#define FWLTHEME_COLOR_EDGELT1 (ArgbEncode(255, 172, 168, 153))
#define FWLTHEME_COLOR_EDGELT2 (ArgbEncode(255, 113, 111, 100))
#define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226))
@@ -56,11 +38,7 @@ struct FWLCOLOR {
#define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216))
#define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218))
#define FWLTHEME_COLOR_Green_BKSelected (ArgbEncode(255, 147, 160, 112))
-#ifdef THEME_XPSimilar
#define FWLTHEME_CAPACITY_EdgeFlat 2.0f
-#else
-#define FWLTHEME_CAPACITY_EdgeFlat 0.0f
-#endif
#define FWLTHEME_CAPACITY_EdgeRaised 2.0f
#define FWLTHEME_CAPACITY_EdgeSunken 2.0f
#define FWLTHEME_CAPACITY_FontSize 12.0f
« no previous file with comments | « xfa/fwl/theme/cfwl_scrollbartp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698