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

Side by Side Diff: xfa/fwl/core/fwl_formimp.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
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/fwl_sdadapterimp.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_FWL_CORE_FWL_FORMIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_
8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_panelimp.h" 10 #include "xfa/fwl/core/fwl_panelimp.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bDisabled ? m_dwState |= FWL_SYSBUTTONSTATE_Disabled 48 bDisabled ? m_dwState |= FWL_SYSBUTTONSTATE_Disabled
49 : m_dwState &= ~FWL_SYSBUTTONSTATE_Disabled; 49 : m_dwState &= ~FWL_SYSBUTTONSTATE_Disabled;
50 } 50 }
51 int32_t GetPartState() { 51 int32_t GetPartState() {
52 return (IsDisabled() ? FWL_PARTSTATE_FRM_Disabled : (m_dwState + 1)); 52 return (IsDisabled() ? FWL_PARTSTATE_FRM_Disabled : (m_dwState + 1));
53 } 53 }
54 54
55 CFX_RectF m_rtBtn; 55 CFX_RectF m_rtBtn;
56 uint32_t m_dwState; 56 uint32_t m_dwState;
57 }; 57 };
58
58 enum FORM_RESIZETYPE { 59 enum FORM_RESIZETYPE {
59 FORM_RESIZETYPE_None = 0, 60 FORM_RESIZETYPE_None = 0,
60 FORM_RESIZETYPE_Cap, 61 FORM_RESIZETYPE_Cap,
61 FORM_RESIZETYPE_Left,
62 FORM_RESIZETYPE_Top,
63 FORM_RESIZETYPE_Right,
64 FORM_RESIZETYPE_Bottom,
65 FORM_RESIZETYPE_LeftTop,
66 FORM_RESIZETYPE_LeftBottom,
67 FORM_RESIZETYPE_RightTop,
68 FORM_RESIZETYPE_RightBottom
69 }; 62 };
63
70 typedef struct RestoreResizeInfo { 64 typedef struct RestoreResizeInfo {
71 CFX_PointF m_ptStart; 65 CFX_PointF m_ptStart;
72 CFX_SizeF m_szStart; 66 CFX_SizeF m_szStart;
73 } RestoreInfo; 67 } RestoreInfo;
68
74 class CFWL_FormImp : public CFWL_PanelImp { 69 class CFWL_FormImp : public CFWL_PanelImp {
75 public: 70 public:
76 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 71 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
77 virtual ~CFWL_FormImp(); 72 virtual ~CFWL_FormImp();
78 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 73 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
79 virtual uint32_t GetClassID() const; 74 virtual uint32_t GetClassID() const;
80 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; 75 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const;
81 virtual FWL_ERR Initialize(); 76 virtual FWL_ERR Initialize();
82 virtual FWL_ERR Finalize(); 77 virtual FWL_ERR Finalize();
83 78
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void OnMouseMove(CFWL_MsgMouse* pMsg); 181 void OnMouseMove(CFWL_MsgMouse* pMsg);
187 void OnMouseHover(CFWL_MsgMouse* pMsg); 182 void OnMouseHover(CFWL_MsgMouse* pMsg);
188 void OnMouseLeave(CFWL_MsgMouse* pMsg); 183 void OnMouseLeave(CFWL_MsgMouse* pMsg);
189 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); 184 void OnLButtonDblClk(CFWL_MsgMouse* pMsg);
190 void OnWindowMove(CFWL_MsgWindowMove* pMsg); 185 void OnWindowMove(CFWL_MsgWindowMove* pMsg);
191 void OnClose(CFWL_MsgClose* pMsg); 186 void OnClose(CFWL_MsgClose* pMsg);
192 CFWL_FormImp* m_pOwner; 187 CFWL_FormImp* m_pOwner;
193 }; 188 };
194 189
195 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ 190 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_event.h ('k') | xfa/fwl/core/fwl_sdadapterimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698