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

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

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: Review feedback Created 4 years, 1 month 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_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_edit.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_EDIT_H_ 7 #ifndef XFA_FWL_CORE_IFWL_EDIT_H_
8 #define XFA_FWL_CORE_IFWL_EDIT_H_ 8 #define XFA_FWL_CORE_IFWL_EDIT_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 class CFWL_MsgDeactivate; 99 class CFWL_MsgDeactivate;
100 class CFWL_MsgMouse; 100 class CFWL_MsgMouse;
101 class CFWL_WidgetImpDelegate; 101 class CFWL_WidgetImpDelegate;
102 class CFWL_WidgetImpProperties; 102 class CFWL_WidgetImpProperties;
103 class IFWL_Caret; 103 class IFWL_Caret;
104 104
105 class IFWL_EditDP : public IFWL_DataProvider {}; 105 class IFWL_EditDP : public IFWL_DataProvider {};
106 106
107 class IFWL_Edit : public IFWL_Widget { 107 class IFWL_Edit : public IFWL_Widget {
108 public: 108 public:
109 IFWL_Edit(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 109 IFWL_Edit(const IFWL_App* app,
110 const CFWL_WidgetImpProperties& properties,
111 IFWL_Widget* pOuter);
110 ~IFWL_Edit() override; 112 ~IFWL_Edit() override;
111 113
112 // IFWL_Widget: 114 // IFWL_Widget:
115 void Initialize() override;
116 void Finalize() override;
113 FWL_Type GetClassID() const override; 117 FWL_Type GetClassID() const override;
114 FWL_Error Initialize() override;
115 void Finalize() override;
116 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 118 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
117 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; 119 FWL_Error SetWidgetRect(const CFX_RectF& rect) override;
118 FWL_Error Update() override; 120 FWL_Error Update() override;
119 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 121 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
120 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; 122 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override;
121 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 123 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
122 const CFX_Matrix* pMatrix = nullptr) override; 124 const CFX_Matrix* pMatrix = nullptr) override;
123 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 125 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
124 126
125 virtual FWL_Error SetText(const CFX_WideString& wsText); 127 virtual FWL_Error SetText(const CFX_WideString& wsText);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void OnButtonDblClk(CFWL_MsgMouse* pMsg); 272 void OnButtonDblClk(CFWL_MsgMouse* pMsg);
271 void OnMouseMove(CFWL_MsgMouse* pMsg); 273 void OnMouseMove(CFWL_MsgMouse* pMsg);
272 void OnKeyDown(CFWL_MsgKey* pMsg); 274 void OnKeyDown(CFWL_MsgKey* pMsg);
273 void OnChar(CFWL_MsgKey* pMsg); 275 void OnChar(CFWL_MsgKey* pMsg);
274 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); 276 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos);
275 void DoCursor(CFWL_MsgMouse* pMsg); 277 void DoCursor(CFWL_MsgMouse* pMsg);
276 IFWL_Edit* m_pOwner; 278 IFWL_Edit* m_pOwner;
277 }; 279 };
278 280
279 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ 281 #endif // XFA_FWL_CORE_IFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698