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

Side by Side Diff: xfa/fwl/core/ifwl_formproxy.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_form.cpp ('k') | xfa/fwl/core/ifwl_formproxy.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_FORMPROXY_H_ 7 #ifndef XFA_FWL_CORE_IFWL_FORMPROXY_H_
8 #define XFA_FWL_CORE_IFWL_FORMPROXY_H_ 8 #define XFA_FWL_CORE_IFWL_FORMPROXY_H_
9 9
10 #include "xfa/fwl/core/ifwl_form.h" 10 #include "xfa/fwl/core/ifwl_form.h"
11 11
12 class CFWL_WidgetImpProperties; 12 class CFWL_WidgetImpProperties;
13 class CFWL_FormProxyImpDelegate; 13 class CFWL_FormProxyImpDelegate;
14 14
15 class IFWL_FormProxy : public IFWL_Form { 15 class IFWL_FormProxy : public IFWL_Form {
16 public: 16 public:
17 IFWL_FormProxy(const CFWL_WidgetImpProperties& properties, 17 IFWL_FormProxy(const IFWL_App* app,
18 const CFWL_WidgetImpProperties& properties,
18 IFWL_Widget* pOuter); 19 IFWL_Widget* pOuter);
19 ~IFWL_FormProxy() override; 20 ~IFWL_FormProxy() override;
20 21
21 // IFWL_Widget 22 // IFWL_Widget
23 void Initialize() override;
24 void Finalize() override;
22 FWL_Type GetClassID() const override; 25 FWL_Type GetClassID() const override;
23 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; 26 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override;
24 FWL_Error Initialize() override;
25 void Finalize() override;
26 FWL_Error Update() override; 27 FWL_Error Update() override;
27 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 28 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
28 const CFX_Matrix* pMatrix = nullptr) override; 29 const CFX_Matrix* pMatrix = nullptr) override;
29 30
30 protected: 31 protected:
31 friend class CFWL_FormProxyImpDelegate; 32 friend class CFWL_FormProxyImpDelegate;
32 }; 33 };
33 34
34 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate { 35 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate {
35 public: 36 public:
36 CFWL_FormProxyImpDelegate(IFWL_FormProxy* pOwner); 37 CFWL_FormProxyImpDelegate(IFWL_FormProxy* pOwner);
37 void OnProcessMessage(CFWL_Message* pMessage) override; 38 void OnProcessMessage(CFWL_Message* pMessage) override;
38 39
39 protected: 40 protected:
40 IFWL_FormProxy* m_pOwner; 41 IFWL_FormProxy* m_pOwner;
41 }; 42 };
42 43
43 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_ 44 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_form.cpp ('k') | xfa/fwl/core/ifwl_formproxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698