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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_picturebox.h

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 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/lightwidget/cfwl_listbox.cpp ('k') | xfa/fwl/lightwidget/cfwl_pushbutton.h » ('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_LIGHTWIDGET_CFWL_PICTUREBOX_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_PICTUREBOX_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_PICTUREBOX_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_PICTUREBOX_H_
9 9
10 #include "xfa/fwl/basewidget/ifwl_picturebox.h" 10 #include "xfa/fwl/basewidget/ifwl_picturebox.h"
11 #include "xfa/fwl/core/fwl_error.h" 11 #include "xfa/fwl/core/fwl_error.h"
12 #include "xfa/fwl/lightwidget/cfwl_widget.h" 12 #include "xfa/fwl/lightwidget/cfwl_widget.h"
13 13
14 class CFWL_PictureBox : public CFWL_Widget { 14 class CFWL_PictureBox : public CFWL_Widget {
15 public: 15 public:
16 CFWL_PictureBox(); 16 CFWL_PictureBox();
17 ~CFWL_PictureBox() override; 17 ~CFWL_PictureBox() override;
18 18
19 static CFWL_PictureBox* Create(); 19 static CFWL_PictureBox* Create();
20 20
21 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); 21 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
22 CFX_DIBitmap* GetPicture(); 22 CFX_DIBitmap* GetPicture();
23 FWL_Error SetPicture(CFX_DIBitmap* pBitmap); 23 FWL_Error SetPicture(CFX_DIBitmap* pBitmap);
24 FX_FLOAT GetRotation(); 24 FX_FLOAT GetRotation();
25 FWL_Error SetRotation(FX_FLOAT fRotation); 25 FWL_Error SetRotation(FX_FLOAT fRotation);
26 int32_t GetFlipMode(); 26 int32_t GetFlipMode();
27 FWL_Error SetFlipMode(int32_t iFlipMode); 27 FWL_Error SetFlipMode(int32_t iFlipMode);
28 int32_t GetOpacity(); 28 int32_t GetOpacity();
29 FWL_Error SetOpacity(int32_t iOpacity); 29 FWL_Error SetOpacity(int32_t iOpacity);
30 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); 30 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY);
31 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); 31 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
(...skipping 25 matching lines...) Expand all
57 FX_FLOAT m_fScaleY; 57 FX_FLOAT m_fScaleY;
58 FX_FLOAT m_fOffSetX; 58 FX_FLOAT m_fOffSetX;
59 FX_FLOAT m_fOffSetY; 59 FX_FLOAT m_fOffSetY;
60 CFX_WideString m_wsData; 60 CFX_WideString m_wsData;
61 }; 61 };
62 62
63 CFWL_PictureBoxDP m_PictureBoxDP; 63 CFWL_PictureBoxDP m_PictureBoxDP;
64 }; 64 };
65 65
66 #endif // XFA_FWL_LIGHTWIDGET_CFWL_PICTUREBOX_H_ 66 #endif // XFA_FWL_LIGHTWIDGET_CFWL_PICTUREBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_listbox.cpp ('k') | xfa/fwl/lightwidget/cfwl_pushbutton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698