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

Side by Side Diff: xfa/fwl/cfwl_form.h

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (Closed)
Patch Set: Review feedback 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/cfwl_edit.cpp ('k') | xfa/fwl/cfwl_form.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_CFWL_FORM_H_ 7 #ifndef XFA_FWL_CFWL_FORM_H_
8 #define XFA_FWL_CFWL_FORM_H_ 8 #define XFA_FWL_CFWL_FORM_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 class CFWL_Form : public CFWL_Widget { 36 class CFWL_Form : public CFWL_Widget {
37 public: 37 public:
38 CFWL_Form(const CFWL_App* app, 38 CFWL_Form(const CFWL_App* app,
39 std::unique_ptr<CFWL_WidgetProperties> properties, 39 std::unique_ptr<CFWL_WidgetProperties> properties,
40 CFWL_Widget* pOuter); 40 CFWL_Widget* pOuter);
41 ~CFWL_Form() override; 41 ~CFWL_Form() override;
42 42
43 // CFWL_Widget 43 // CFWL_Widget
44 FWL_Type GetClassID() const override; 44 FWL_Type GetClassID() const override;
45 bool IsInstance(const CFX_WideStringC& wsClass) const override; 45 bool IsInstance(const CFX_WideStringC& wsClass) const override;
46 void GetClientRect(CFX_RectF& rect) override; 46 CFX_RectF GetClientRect() override;
47 void Update() override; 47 void Update() override;
48 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 48 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
49 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; 49 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
50 void OnProcessMessage(CFWL_Message* pMessage) override; 50 void OnProcessMessage(CFWL_Message* pMessage) override;
51 void OnDrawWidget(CFX_Graphics* pGraphics, 51 void OnDrawWidget(CFX_Graphics* pGraphics,
52 const CFX_Matrix* pMatrix) override; 52 const CFX_Matrix* pMatrix) override;
53 53
54 CFWL_Widget* DoModal(); 54 CFWL_Widget* DoModal();
55 void EndDoModal(); 55 void EndDoModal();
56 56
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 FX_FLOAT m_fCYBorder; 90 FX_FLOAT m_fCYBorder;
91 int32_t m_iCaptureBtn; 91 int32_t m_iCaptureBtn;
92 int32_t m_iSysBox; 92 int32_t m_iSysBox;
93 bool m_bLButtonDown; 93 bool m_bLButtonDown;
94 bool m_bMaximized; 94 bool m_bMaximized;
95 bool m_bSetMaximize; 95 bool m_bSetMaximize;
96 bool m_bDoModalFlag; 96 bool m_bDoModalFlag;
97 }; 97 };
98 98
99 #endif // XFA_FWL_CFWL_FORM_H_ 99 #endif // XFA_FWL_CFWL_FORM_H_
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_edit.cpp ('k') | xfa/fwl/cfwl_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698