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

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

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Legal cast, it turns out. Created 5 years 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 _FWL_CHECKBOX_H 7 #ifndef _FWL_CHECKBOX_H
8 #define _FWL_CHECKBOX_H 8 #define _FWL_CHECKBOX_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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" 62 #define FWL_EVT_CKB_CheckStateChanged L"FWL_EVENT_CKB_CheckStateChanged"
63 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963 63 #define FWL_EVTHASH_CKB_CheckStateChanged 2503252963
64 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged, 64 BEGIN_FWL_EVENT_DEF(CFWL_EvtCkbCheckStateChanged,
65 FWL_EVTHASH_CKB_CheckStateChanged) 65 FWL_EVTHASH_CKB_CheckStateChanged)
66 END_FWL_EVENT_DEF 66 END_FWL_EVENT_DEF
67 class IFWL_CheckBoxDP : public IFWL_DataProvider { 67 class IFWL_CheckBoxDP : public IFWL_DataProvider {
68 public: 68 public:
69 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0; 69 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget) = 0;
70 }; 70 };
71
71 class IFWL_CheckBox : public IFWL_Widget { 72 class IFWL_CheckBox : public IFWL_Widget {
72 public: 73 public:
73 IFWL_CheckBox(); 74 static IFWL_CheckBox* Create(const CFWL_WidgetImpProperties& properties,
74 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 75 IFWL_Widget* pOuter);
75 IFWL_Widget* pOuter);
76 int32_t GetCheckState(); 76 int32_t GetCheckState();
77 FWL_ERR SetCheckState(int32_t iCheck); 77 FWL_ERR SetCheckState(int32_t iCheck);
78 78
79 protected:
80 IFWL_CheckBox();
79 }; 81 };
82
80 class IFWL_RadioButton : public IFWL_Widget { 83 class IFWL_RadioButton : public IFWL_Widget {
81 public: 84 public:
82 IFWL_RadioButton(); 85 static IFWL_RadioButton* Create(const CFWL_WidgetImpProperties& properties,
83 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 86 IFWL_Widget* pOuter);
84 IFWL_Widget* pOuter);
85 int32_t GetCheckState(); 87 int32_t GetCheckState();
86 FWL_ERR SetCheckState(int32_t iCheck); 88 FWL_ERR SetCheckState(int32_t iCheck);
89
90 protected:
91 IFWL_RadioButton();
87 }; 92 };
88 #endif 93 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698