diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-05 14:18:14 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-05 19:46:20 +0000 |
commit | a9e28433600816a20406709c5652ba91697bc387 (patch) | |
tree | 8b0ad8cc5f67f5abbdf096501efb49443efd6288 /fpdfsdk/pdfwindow/cpwl_wnd.h | |
parent | 7f6bec9b4c0cb2f53724ea83715d4fe22eed1d28 (diff) | |
download | pdfium-a9e28433600816a20406709c5652ba91697bc387.tar.xz |
Cleanup some CPWL_Wnd defines
This CL removes unused #define's and moves ones that are only used in a
single .cpp class to that file.
Change-Id: I6c503d5d4c031a870b7a1362086205a810d31478
Reviewed-on: https://pdfium-review.googlesource.com/7256
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.h')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_wnd.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h index 97c47527a2..a3c4cbbb42 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.h +++ b/fpdfsdk/pdfwindow/cpwl_wnd.h @@ -34,7 +34,6 @@ struct PWL_SCROLL_INFO; #define PWS_HSCROLL 0x10000000L #define PWS_VSCROLL 0x08000000L #define PWS_VISIBLE 0x04000000L -#define PWS_DISABLE 0x02000000L #define PWS_READONLY 0x01000000L #define PWS_AUTOFONTSIZE 0x00800000L #define PWS_AUTOTRANSPARENT 0x00400000L @@ -65,14 +64,6 @@ struct PWL_SCROLL_INFO; // combobox styles #define PCBS_ALLOWCUSTOMTEXT 0x0001L -// richedit styles -#define PRES_MULTILINE 0x0001L -#define PRES_AUTORETURN 0x0002L -#define PRES_AUTOSCROLL 0x0004L -#define PRES_UNDO 0x0100L -#define PRES_MULTIPAGES 0x0200L -#define PRES_TEXTOVERFLOW 0x0400L - #define PWL_CLASSNAME_EDIT "CPWL_Edit" struct CPWL_Dash { @@ -106,24 +97,11 @@ inline bool operator!=(const CPWL_Color& c1, const CPWL_Color& c2) { } #define PWL_SCROLLBAR_WIDTH 12.0f -#define PWL_SCROLLBAR_BUTTON_WIDTH 9.0f -#define PWL_SCROLLBAR_POSBUTTON_MINWIDTH 2.0f #define PWL_SCROLLBAR_TRANSPARENCY 150 -#define PWL_SCROLLBAR_BKCOLOR \ - CPWL_Color(COLORTYPE_RGB, 220.0f / 255.0f, 220.0f / 255.0f, 220.0f / 255.0f) -#define PWL_DEFAULT_SELTEXTCOLOR CPWL_Color(COLORTYPE_RGB, 1, 1, 1) #define PWL_DEFAULT_SELBACKCOLOR \ CPWL_Color(COLORTYPE_RGB, 0, 51.0f / 255.0f, 113.0f / 255.0f) -#define PWL_DEFAULT_BACKCOLOR PWL_DEFAULT_SELTEXTCOLOR -#define PWL_DEFAULT_TEXTCOLOR CPWL_Color(COLORTYPE_RGB, 0, 0, 0) -#define PWL_DEFAULT_FONTSIZE 9.0f #define PWL_DEFAULT_BLACKCOLOR CPWL_Color(COLORTYPE_GRAY, 0) #define PWL_DEFAULT_WHITECOLOR CPWL_Color(COLORTYPE_GRAY, 1) -#define PWL_DEFAULT_HEAVYGRAYCOLOR CPWL_Color(COLORTYPE_GRAY, 0.50) -#define PWL_DEFAULT_LIGHTGRAYCOLOR CPWL_Color(COLORTYPE_GRAY, 0.75) -#define PWL_TRIANGLE_HALFLEN 2.0f -#define PWL_CBBUTTON_TRIANGLE_HALFLEN 3.0f -#define PWL_INVALIDATE_INFLATE 2 class IPWL_Provider : public CFX_Observable<IPWL_Provider> { public: |