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

Side by Side Diff: xfa/fwl/core/ifwl_picturebox.cpp

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: cleanup 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
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 #include "xfa/fwl/core/ifwl_picturebox.h" 7 #include "xfa/fwl/core/ifwl_picturebox.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fwl/core/cfwl_picturebox.h" 10 #include "xfa/fwl/core/cfwl_picturebox.h"
11 #include "xfa/fwl/core/fwl_noteimp.h" 11 #include "xfa/fwl/core/fwl_noteimp.h"
12 12
13 IFWL_PictureBox::IFWL_PictureBox(const IFWL_App* app, 13 IFWL_PictureBox::IFWL_PictureBox(
14 const CFWL_WidgetImpProperties& properties) 14 const IFWL_App* app,
15 : IFWL_Widget(app, properties, nullptr), 15 std::unique_ptr<CFWL_WidgetProperties> properties)
16 : IFWL_Widget(app, std::move(properties), nullptr),
16 m_bTop(false), 17 m_bTop(false),
17 m_bVCenter(false), 18 m_bVCenter(false),
18 m_bButton(false) { 19 m_bButton(false) {
19 m_rtClient.Reset(); 20 m_rtClient.Reset();
20 m_rtImage.Reset(); 21 m_rtImage.Reset();
21 m_matrix.SetIdentity(); 22 m_matrix.SetIdentity();
22 } 23 }
23 24
24 IFWL_PictureBox::~IFWL_PictureBox() {} 25 IFWL_PictureBox::~IFWL_PictureBox() {}
25 26
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 m_bButton = true; 115 m_bButton = true;
115 return true; 116 return true;
116 } 117 }
117 return false; 118 return false;
118 } 119 }
119 120
120 void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, 121 void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics,
121 const CFX_Matrix* pMatrix) { 122 const CFX_Matrix* pMatrix) {
122 DrawWidget(pGraphics, pMatrix); 123 DrawWidget(pGraphics, pMatrix);
123 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698