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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_checkbox.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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/fwl/lightwidget/cfwl_barcode.cpp ('k') | xfa/fwl/lightwidget/cfwl_checkbox.cpp » ('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_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_
9 9
10 #include "xfa/fwl/basewidget/ifwl_checkbox.h" 10 #include "xfa/fwl/basewidget/ifwl_checkbox.h"
11 #include "xfa/fwl/lightwidget/cfwl_widget.h" 11 #include "xfa/fwl/lightwidget/cfwl_widget.h"
12 12
13 class CFWL_CheckBox : public CFWL_Widget { 13 class CFWL_CheckBox : public CFWL_Widget {
14 public: 14 public:
15 static CFWL_CheckBox* Create(); 15 static CFWL_CheckBox* Create();
16 16
17 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); 17 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL);
18 FWL_ERR GetCaption(CFX_WideString& wsCaption); 18 FWL_Error GetCaption(CFX_WideString& wsCaption);
19 FWL_ERR SetCaption(const CFX_WideStringC& wsCaption); 19 FWL_Error SetCaption(const CFX_WideStringC& wsCaption);
20 FWL_ERR SetBoxSize(FX_FLOAT fHeight); 20 FWL_Error SetBoxSize(FX_FLOAT fHeight);
21 int32_t GetCheckState(); 21 int32_t GetCheckState();
22 FWL_ERR SetCheckState(int32_t iCheck); 22 FWL_Error SetCheckState(int32_t iCheck);
23 CFWL_CheckBox(); 23 CFWL_CheckBox();
24 virtual ~CFWL_CheckBox(); 24 virtual ~CFWL_CheckBox();
25 25
26 protected: 26 protected:
27 class CFWL_CheckBoxDP : public IFWL_CheckBoxDP { 27 class CFWL_CheckBoxDP : public IFWL_CheckBoxDP {
28 public: 28 public:
29 CFWL_CheckBoxDP(); 29 CFWL_CheckBoxDP();
30 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption); 30 virtual FWL_Error GetCaption(IFWL_Widget* pWidget,
31 CFX_WideString& wsCaption);
31 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget); 32 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget);
32 FX_FLOAT m_fBoxHeight; 33 FX_FLOAT m_fBoxHeight;
33 CFX_WideString m_wsCaption; 34 CFX_WideString m_wsCaption;
34 }; 35 };
35 CFWL_CheckBoxDP m_checkboxData; 36 CFWL_CheckBoxDP m_checkboxData;
36 }; 37 };
37 38
38 #endif // XFA_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_ 39 #endif // XFA_FWL_LIGHTWIDGET_CFWL_CHECKBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_barcode.cpp ('k') | xfa/fwl/lightwidget/cfwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698