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

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

Issue 2556873004: Convert GetWidgetRect to return rect. (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/core/cfwl_edit.cpp ('k') | xfa/fwl/core/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_CORE_CFWL_FORM_H_ 7 #ifndef XFA_FWL_CORE_CFWL_FORM_H_
8 #define XFA_FWL_CORE_CFWL_FORM_H_ 8 #define XFA_FWL_CORE_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 GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
47 void GetClientRect(CFX_RectF& rect) override; 46 void GetClientRect(CFX_RectF& rect) override;
48 void Update() override; 47 void Update() override;
49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 48 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
50 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; 49 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
51 void OnProcessMessage(CFWL_Message* pMessage) override; 50 void OnProcessMessage(CFWL_Message* pMessage) override;
52 void OnDrawWidget(CFX_Graphics* pGraphics, 51 void OnDrawWidget(CFX_Graphics* pGraphics,
53 const CFX_Matrix* pMatrix) override; 52 const CFX_Matrix* pMatrix) override;
54 53
55 CFWL_Widget* DoModal(); 54 CFWL_Widget* DoModal();
56 void EndDoModal(); 55 void EndDoModal();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 FX_FLOAT m_fCYBorder; 90 FX_FLOAT m_fCYBorder;
92 int32_t m_iCaptureBtn; 91 int32_t m_iCaptureBtn;
93 int32_t m_iSysBox; 92 int32_t m_iSysBox;
94 bool m_bLButtonDown; 93 bool m_bLButtonDown;
95 bool m_bMaximized; 94 bool m_bMaximized;
96 bool m_bSetMaximize; 95 bool m_bSetMaximize;
97 bool m_bDoModalFlag; 96 bool m_bDoModalFlag;
98 }; 97 };
99 98
100 #endif // XFA_FWL_CORE_CFWL_FORM_H_ 99 #endif // XFA_FWL_CORE_CFWL_FORM_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_edit.cpp ('k') | xfa/fwl/core/cfwl_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698