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

Side by Side Diff: xfa/fwl/core/ifwl_pushbutton.h

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master Created 4 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
« no previous file with comments | « xfa/fwl/core/ifwl_picturebox.cpp ('k') | xfa/fwl/core/ifwl_pushbutton.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_CORE_IFWL_PUSHBUTTON_H_ 7 #ifndef XFA_FWL_CORE_IFWL_PUSHBUTTON_H_
8 #define XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ 8 #define XFA_FWL_CORE_IFWL_PUSHBUTTON_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 #define FWL_STATE_PSB_Hovered (1 << FWL_WGTSTATE_MAX) 27 #define FWL_STATE_PSB_Hovered (1 << FWL_WGTSTATE_MAX)
28 #define FWL_STATE_PSB_Pressed (1 << (FWL_WGTSTATE_MAX + 1)) 28 #define FWL_STATE_PSB_Pressed (1 << (FWL_WGTSTATE_MAX + 1))
29 #define FWL_STATE_PSB_Default (1 << (FWL_WGTSTATE_MAX + 2)) 29 #define FWL_STATE_PSB_Default (1 << (FWL_WGTSTATE_MAX + 2))
30 30
31 class CFWL_MsgMouse; 31 class CFWL_MsgMouse;
32 class CFX_DIBitmap; 32 class CFX_DIBitmap;
33 class IFWL_Widget; 33 class IFWL_Widget;
34 34
35 class IFWL_PushButton : public IFWL_Widget { 35 class IFWL_PushButton : public IFWL_Widget {
36 public: 36 public:
37 IFWL_PushButton(const IFWL_App* app, 37 IFWL_PushButton(const CFWL_App* app,
38 std::unique_ptr<CFWL_WidgetProperties> properties); 38 std::unique_ptr<CFWL_WidgetProperties> properties);
39 ~IFWL_PushButton() override; 39 ~IFWL_PushButton() override;
40 40
41 // IFWL_Widget 41 // IFWL_Widget
42 FWL_Type GetClassID() const override; 42 FWL_Type GetClassID() const override;
43 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 43 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
44 void SetStates(uint32_t dwStates, bool bSet = true) override; 44 void SetStates(uint32_t dwStates, bool bSet = true) override;
45 void Update() override; 45 void Update() override;
46 void DrawWidget(CFX_Graphics* pGraphics, 46 void DrawWidget(CFX_Graphics* pGraphics,
47 const CFX_Matrix* pMatrix = nullptr) override; 47 const CFX_Matrix* pMatrix = nullptr) override;
(...skipping 15 matching lines...) Expand all
63 void OnKeyDown(CFWL_MsgKey* pMsg); 63 void OnKeyDown(CFWL_MsgKey* pMsg);
64 64
65 CFX_RectF m_rtClient; 65 CFX_RectF m_rtClient;
66 CFX_RectF m_rtCaption; 66 CFX_RectF m_rtCaption;
67 bool m_bBtnDown; 67 bool m_bBtnDown;
68 uint32_t m_dwTTOStyles; 68 uint32_t m_dwTTOStyles;
69 int32_t m_iTTOAlign; 69 int32_t m_iTTOAlign;
70 }; 70 };
71 71
72 #endif // XFA_FWL_CORE_IFWL_PUSHBUTTON_H_ 72 #endif // XFA_FWL_CORE_IFWL_PUSHBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_picturebox.cpp ('k') | xfa/fwl/core/ifwl_pushbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698