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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_checkbox.h

Issue 1735833003: Remove include only fwl.h and IWYU. (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 | « xfa/include/fwl/basewidget/fwl_caret.h ('k') | xfa/include/fwl/basewidget/fwl_datetimepicker.h » ('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 XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_ 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_ 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_
9 9
10 class CFWL_WidgetImpProperties; 10 #include "xfa/include/fwl/core/fwl_note.h"
11 class IFWL_Widget; 11 #include "xfa/include/fwl/core/fwl_widget.h"
12 class IFWL_CheckBoxDP; 12
13 class IFWL_CheckBox;
14 #define FWL_CLASS_CheckBox L"FWL_CHECKBOX" 13 #define FWL_CLASS_CheckBox L"FWL_CHECKBOX"
15 #define FWL_CLASSHASH_CheckBox 4107183823 14 #define FWL_CLASSHASH_CheckBox 4107183823
16 #define FWL_STYLEEXT_CKB_Left (0L << 0) 15 #define FWL_STYLEEXT_CKB_Left (0L << 0)
17 #define FWL_STYLEEXT_CKB_Center (1L << 0) 16 #define FWL_STYLEEXT_CKB_Center (1L << 0)
18 #define FWL_STYLEEXT_CKB_Right (2L << 0) 17 #define FWL_STYLEEXT_CKB_Right (2L << 0)
19 #define FWL_STYLEEXT_CKB_Top (0L << 2) 18 #define FWL_STYLEEXT_CKB_Top (0L << 2)
20 #define FWL_STYLEEXT_CKB_VCenter (1L << 2) 19 #define FWL_STYLEEXT_CKB_VCenter (1L << 2)
21 #define FWL_STYLEEXT_CKB_Bottom (2L << 2) 20 #define FWL_STYLEEXT_CKB_Bottom (2L << 2)
22 #define FWL_STYLEEXT_CKB_LeftText (1L << 4) 21 #define FWL_STYLEEXT_CKB_LeftText (1L << 4)
23 #define FWL_STYLEEXT_CKB_MultiLine (1L << 5) 22 #define FWL_STYLEEXT_CKB_MultiLine (1L << 5)
(...skipping 29 matching lines...) Expand all
53 #define FWL_PARTSTATE_CKB_Hovered (2L << 0) 52 #define FWL_PARTSTATE_CKB_Hovered (2L << 0)
54 #define FWL_PARTSTATE_CKB_Disabled (3L << 0) 53 #define FWL_PARTSTATE_CKB_Disabled (3L << 0)
55 #define FWL_PARTSTATE_CKB_UnChecked (0L << 2) 54 #define FWL_PARTSTATE_CKB_UnChecked (0L << 2)
56 #define FWL_PARTSTATE_CKB_Checked (1L << 2) 55 #define FWL_PARTSTATE_CKB_Checked (1L << 2)
57 #define FWL_PARTSTATE_CKB_Neutral (2L << 2) 56 #define FWL_PARTSTATE_CKB_Neutral (2L << 2)
58 #define FWL_PARTSTATE_CKB_Focused (1L << 4) 57 #define FWL_PARTSTATE_CKB_Focused (1L << 4)
59 #define FWL_PARTSTATE_CKB_Mask1 (3L << 0) 58 #define FWL_PARTSTATE_CKB_Mask1 (3L << 0)
60 #define FWL_PARTSTATE_CKB_Mask2 (3L << 2) 59 #define FWL_PARTSTATE_CKB_Mask2 (3L << 2)
61 #define FWL_EVT_CKB_CheckStateChanged L"FWL_EVENT_CKB_CheckStateChanged" 60 #define FWL_EVT_CKB_CheckStateChanged L"FWL_EVENT_CKB_CheckStateChanged"
62 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963 61 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963
62
63 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, 63 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged,
64 FWL_EVTHASH_CKB_CheckStateChanged) 64 FWL_EVTHASH_CKB_CheckStateChanged)
65 END_FWL_EVENT_DEF 65 END_FWL_EVENT_DEF
66 class IFWL_CheckBoxDP : public IFWL_DataProvider { 66 class IFWL_CheckBoxDP : public IFWL_DataProvider {
67 public: 67 public:
68 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; 68 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0;
69 }; 69 };
70 70
71 class IFWL_CheckBox : public IFWL_Widget { 71 class IFWL_CheckBox : public IFWL_Widget {
72 public: 72 public:
73 static IFWL_CheckBox* Create(const CFWL_WidgetImpProperties& properties, 73 static IFWL_CheckBox* Create(const CFWL_WidgetImpProperties& properties,
74 IFWL_Widget* pOuter); 74 IFWL_Widget* pOuter);
75 int32_t GetCheckState(); 75 int32_t GetCheckState();
76 FWL_ERR SetCheckState(int32_t iCheck); 76 FWL_ERR SetCheckState(int32_t iCheck);
77 77
78 protected: 78 protected:
79 IFWL_CheckBox(); 79 IFWL_CheckBox();
80 }; 80 };
81 81
82 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_ 82 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_CHECKBOX_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_caret.h ('k') | xfa/include/fwl/basewidget/fwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698