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

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

Issue 2488963005: Continue IFWL widget cleanup. (Closed)
Patch Set: Rebase to master 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/cfwl_picturebox.h" 7 #include "xfa/fwl/core/cfwl_picturebox.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 fy = matrix.f; 88 fy = matrix.f;
89 return FWL_Error::Succeeded; 89 return FWL_Error::Succeeded;
90 } 90 }
91 91
92 FWL_Error CFWL_PictureBox::SetOffset(FX_FLOAT fx, FX_FLOAT fy) { 92 FWL_Error CFWL_PictureBox::SetOffset(FX_FLOAT fx, FX_FLOAT fy) {
93 m_fOffSetX = fx; 93 m_fOffSetX = fx;
94 m_fOffSetY = fy; 94 m_fOffSetY = fy;
95 return FWL_Error::Succeeded; 95 return FWL_Error::Succeeded;
96 } 96 }
97 97
98 FWL_Error CFWL_PictureBox::GetCaption(IFWL_Widget* pWidget, 98 void CFWL_PictureBox::GetCaption(IFWL_Widget* pWidget,
99 CFX_WideString& wsCaption) { 99 CFX_WideString& wsCaption) {}
100 return FWL_Error::Succeeded;
101 }
102 100
103 CFX_DIBitmap* CFWL_PictureBox::GetPicture(IFWL_Widget* pWidget) { 101 CFX_DIBitmap* CFWL_PictureBox::GetPicture(IFWL_Widget* pWidget) {
104 return m_pBitmap; 102 return m_pBitmap;
105 } 103 }
106 104
107 CFX_DIBitmap* CFWL_PictureBox::GetErrorPicture(IFWL_Widget* pWidget) { 105 CFX_DIBitmap* CFWL_PictureBox::GetErrorPicture(IFWL_Widget* pWidget) {
108 return m_pBitmap; 106 return m_pBitmap;
109 } 107 }
110 108
111 CFX_DIBitmap* CFWL_PictureBox::GetInitialPicture(IFWL_Widget* pWidget) { 109 CFX_DIBitmap* CFWL_PictureBox::GetInitialPicture(IFWL_Widget* pWidget) {
(...skipping 14 matching lines...) Expand all
126 matrix.Rotate(m_fRotation); 124 matrix.Rotate(m_fRotation);
127 matrix.Translate(fLen, fWid); 125 matrix.Translate(fLen, fWid);
128 matrix.Scale(m_fScaleX, m_fScaleY); 126 matrix.Scale(m_fScaleX, m_fScaleY);
129 matrix.Translate(m_fOffSetX, m_fOffSetY); 127 matrix.Translate(m_fOffSetX, m_fOffSetY);
130 return FWL_Error::Succeeded; 128 return FWL_Error::Succeeded;
131 } 129 }
132 130
133 int32_t CFWL_PictureBox::GetFlipMode(IFWL_Widget* pWidget) { 131 int32_t CFWL_PictureBox::GetFlipMode(IFWL_Widget* pWidget) {
134 return m_iFlipMode; 132 return m_iFlipMode;
135 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698