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

Side by Side Diff: xfa/fwl/basewidget/ifwl_checkbox.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 unified diff | Download patch
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_FWL_BASEWIDGET_IFWL_CHECKBOX_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_CHECKBOX_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_CHECKBOX_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_CHECKBOX_H_
9 9
10 #include "xfa/fwl/core/ifwl_widget.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #define FWL_PARTSTATE_CKB_Normal (0L << 0) 52 #define FWL_PARTSTATE_CKB_Normal (0L << 0)
53 #define FWL_PARTSTATE_CKB_Pressed (1L << 0) 53 #define FWL_PARTSTATE_CKB_Pressed (1L << 0)
54 #define FWL_PARTSTATE_CKB_Hovered (2L << 0) 54 #define FWL_PARTSTATE_CKB_Hovered (2L << 0)
55 #define FWL_PARTSTATE_CKB_Disabled (3L << 0) 55 #define FWL_PARTSTATE_CKB_Disabled (3L << 0)
56 #define FWL_PARTSTATE_CKB_UnChecked (0L << 2) 56 #define FWL_PARTSTATE_CKB_UnChecked (0L << 2)
57 #define FWL_PARTSTATE_CKB_Checked (1L << 2) 57 #define FWL_PARTSTATE_CKB_Checked (1L << 2)
58 #define FWL_PARTSTATE_CKB_Neutral (2L << 2) 58 #define FWL_PARTSTATE_CKB_Neutral (2L << 2)
59 #define FWL_PARTSTATE_CKB_Focused (1L << 4) 59 #define FWL_PARTSTATE_CKB_Focused (1L << 4)
60 #define FWL_PARTSTATE_CKB_Mask1 (3L << 0) 60 #define FWL_PARTSTATE_CKB_Mask1 (3L << 0)
61 #define FWL_PARTSTATE_CKB_Mask2 (3L << 2) 61 #define FWL_PARTSTATE_CKB_Mask2 (3L << 2)
62 #define FWL_EVT_CKB_CheckStateChanged L"FWL_EVENT_CKB_CheckStateChanged"
63 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963 62 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963
Tom Sepez 2016/04/11 17:29:44 nit: I think the #define above indicates what stri
dsinclair 2016/04/11 19:47:32 I don't think that's right in this case. FWL_EVTHA
64 63
65 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, 64 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged,
66 FWL_EVTHASH_CKB_CheckStateChanged) 65 FWL_EVTHASH_CKB_CheckStateChanged)
67 END_FWL_EVENT_DEF 66 END_FWL_EVENT_DEF
68 67
69 class IFWL_CheckBoxDP : public IFWL_DataProvider { 68 class IFWL_CheckBoxDP : public IFWL_DataProvider {
70 public: 69 public:
71 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; 70 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0;
72 }; 71 };
73 72
74 class IFWL_CheckBox : public IFWL_Widget { 73 class IFWL_CheckBox : public IFWL_Widget {
75 public: 74 public:
76 static IFWL_CheckBox* Create(const CFWL_WidgetImpProperties& properties, 75 static IFWL_CheckBox* Create(const CFWL_WidgetImpProperties& properties,
77 IFWL_Widget* pOuter); 76 IFWL_Widget* pOuter);
78 int32_t GetCheckState(); 77 int32_t GetCheckState();
79 FWL_ERR SetCheckState(int32_t iCheck); 78 FWL_ERR SetCheckState(int32_t iCheck);
80 79
81 protected: 80 protected:
82 IFWL_CheckBox(); 81 IFWL_CheckBox();
83 }; 82 };
84 83
85 #endif // XFA_FWL_BASEWIDGET_IFWL_CHECKBOX_H_ 84 #endif // XFA_FWL_BASEWIDGET_IFWL_CHECKBOX_H_
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fwl/basewidget/ifwl_combobox.h » ('j') | xfa/fwl/basewidget/ifwl_combobox.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698