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

Side by Side Diff: xfa/fwl/basewidget/fwl_pictureboximp.h

Issue 2432423002: Merge the CFWL_*Imp classes into the IFWL_* classes. (Closed)
Patch Set: Review feedback Created 4 years, 2 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/basewidget/fwl_monthcalendarimp.cpp ('k') | xfa/fwl/basewidget/fwl_pictureboximp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_BASEWIDGET_FWL_PICTUREBOXIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_PICTUREBOXIMP_H_
9
10 #include "xfa/fwl/core/fwl_widgetimp.h"
11 #include "xfa/fwl/core/ifwl_widget.h"
12
13 class CFWL_WidgetImpProperties;
14 class IFWL_Widget;
15 class CFWL_PictureBoxImpDelegate;
16
17 class CFWL_PictureBoxImp : public CFWL_WidgetImp {
18 public:
19 CFWL_PictureBoxImp(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter);
21 ~CFWL_PictureBoxImp() override;
22
23 // CFWL_WidgetImp
24 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
25 FWL_Type GetClassID() const override;
26 FWL_Error Initialize() override;
27 FWL_Error Finalize() override;
28 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
29 FWL_Error Update() override;
30 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
31 const CFX_Matrix* pMatrix = nullptr) override;
32
33 protected:
34 friend class CFWL_PictureBoxImpDelegate;
35
36 void DrawBkground(CFX_Graphics* pGraphics,
37 IFWL_ThemeProvider* pTheme,
38 const CFX_Matrix* pMatrix = nullptr);
39
40 FX_BOOL VStyle(FX_BOOL dwStyle);
41 CFX_RectF m_rtClient;
42 CFX_RectF m_rtImage;
43 CFX_Matrix m_matrix;
44 FX_BOOL m_bTop;
45 FX_BOOL m_bVCenter;
46 FX_BOOL m_bButton;
47 };
48
49 class CFWL_PictureBoxImpDelegate : public CFWL_WidgetImpDelegate {
50 public:
51 CFWL_PictureBoxImpDelegate(CFWL_PictureBoxImp* pOwner);
52 void OnDrawWidget(CFX_Graphics* pGraphics,
53 const CFX_Matrix* pMatrix = nullptr) override;
54
55 protected:
56 CFWL_PictureBoxImp* m_pOwner;
57 };
58
59 #endif // XFA_FWL_BASEWIDGET_FWL_PICTUREBOXIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_monthcalendarimp.cpp ('k') | xfa/fwl/basewidget/fwl_pictureboximp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698