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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Signature.cpp

Issue 1853233002: Make down-conversion explicit from CFX_ByteString to CFX_ByteStringC. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix CPDF_Name::GetConstString() Created 4 years, 8 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 | « fpdfsdk/pdfwindow/PWL_ScrollBar.cpp ('k') | xfa/fee/fde_txtedtengine.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 #include "fpdfsdk/pdfwindow/PWL_Signature.h" 7 #include "fpdfsdk/pdfwindow/PWL_Signature.h"
8 8
9 #include "core/include/fxge/fx_ge.h" 9 #include "core/include/fxge/fx_ge.h"
10 #include "fpdfsdk/pdfwindow/PWL_Icon.h" 10 #include "fpdfsdk/pdfwindow/PWL_Icon.h"
(...skipping 24 matching lines...) Expand all
35 pUser2Device->Transform(rcClient.left, rcClient.top, x, y); 35 pUser2Device->Transform(rcClient.left, rcClient.top, x, y);
36 36
37 pDevice->StretchDIBits(m_pImage, (int32_t)x, (int32_t)y, 37 pDevice->StretchDIBits(m_pImage, (int32_t)x, (int32_t)y,
38 (int32_t)rcClient.Width(), 38 (int32_t)rcClient.Width(),
39 (int32_t)rcClient.Height()); 39 (int32_t)rcClient.Height());
40 } 40 }
41 } 41 }
42 42
43 void CPWL_Signature_Image::GetThisAppearanceStream( 43 void CPWL_Signature_Image::GetThisAppearanceStream(
44 CFX_ByteTextBuf& sAppStream) { 44 CFX_ByteTextBuf& sAppStream) {
45 sAppStream << CPWL_Image::GetImageAppStream(); 45 sAppStream << CPWL_Image::GetImageAppStream().AsByteStringC();
46 } 46 }
47 47
48 void CPWL_Signature_Image::GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale) { 48 void CPWL_Signature_Image::GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale) {
49 FX_FLOAT fImageW, fImageH; 49 FX_FLOAT fImageW, fImageH;
50 50
51 GetImageSize(fImageW, fImageH); 51 GetImageSize(fImageW, fImageH);
52 52
53 CFX_FloatRect rcClient = GetClientRect(); 53 CFX_FloatRect rcClient = GetClientRect();
54 54
55 fHScale = rcClient.Width() / fImageW; 55 fHScale = rcClient.Width() / fImageW;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, 169 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT,
170 CPWL_Utils::GetCenterSquare(GetClientRect()), 170 CPWL_Utils::GetCenterSquare(GetClientRect()),
171 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), 171 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f),
172 CPWL_Color(COLORTYPE_TRANSPARENT), 255); 172 CPWL_Color(COLORTYPE_TRANSPARENT), 255);
173 } 173 }
174 } 174 }
175 175
176 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { 176 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) {
177 CPWL_Wnd::GetThisAppearanceStream(sAppStream); 177 CPWL_Wnd::GetThisAppearanceStream(sAppStream);
178 } 178 }
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_ScrollBar.cpp ('k') | xfa/fee/fde_txtedtengine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698