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

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

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/src/pdfwindow/PWL_Note.cpp ('k') | public/fpdf_dataavail.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 #include "fpdfsdk/include/pdfwindow/PWL_Signature.h"
8
7 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" 9 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h"
8 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" 10 #include "fpdfsdk/include/pdfwindow/PWL_Label.h"
9 #include "fpdfsdk/include/pdfwindow/PWL_Signature.h"
10 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" 11 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h"
11 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" 12 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h"
12 13
13 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} 14 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {}
14 15
15 CPWL_Signature_Image::~CPWL_Signature_Image() {} 16 CPWL_Signature_Image::~CPWL_Signature_Image() {}
16 17
17 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) { 18 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) {
18 m_pImage = pImage; 19 m_pImage = pImage;
19 } 20 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void CPWL_Signature::SetFoxitFlag(FX_BOOL bFlagExist) { 80 void CPWL_Signature::SetFoxitFlag(FX_BOOL bFlagExist) {
80 m_bFlagExist = bFlagExist; 81 m_bFlagExist = bFlagExist;
81 } 82 }
82 83
83 void CPWL_Signature::SetText(const FX_WCHAR* sText) { 84 void CPWL_Signature::SetText(const FX_WCHAR* sText) {
84 m_pText->SetText(sText); 85 m_pText->SetText(sText);
85 86
86 RePosChildWnd(); 87 RePosChildWnd();
87 } 88 }
88 89
89 void CPWL_Signature::SetDescription(const FX_WCHAR* string) { 90 void CPWL_Signature::SetDescription(const FX_WCHAR* str) {
90 m_pDescription->SetText(string); 91 m_pDescription->SetText(str);
91 92
92 RePosChildWnd(); 93 RePosChildWnd();
93 } 94 }
94 95
95 void CPWL_Signature::SetImage(CFX_DIBSource* pImage) { 96 void CPWL_Signature::SetImage(CFX_DIBSource* pImage) {
96 m_pImage->SetImage(pImage); 97 m_pImage->SetImage(pImage);
97 98
98 RePosChildWnd(); 99 RePosChildWnd();
99 } 100 }
100 101
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, 168 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT,
168 CPWL_Utils::GetCenterSquare(GetClientRect()), 169 CPWL_Utils::GetCenterSquare(GetClientRect()),
169 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), 170 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f),
170 CPWL_Color(COLORTYPE_TRANSPARENT), 255); 171 CPWL_Color(COLORTYPE_TRANSPARENT), 255);
171 } 172 }
172 } 173 }
173 174
174 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { 175 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) {
175 CPWL_Wnd::GetThisAppearanceStream(sAppStream); 176 CPWL_Wnd::GetThisAppearanceStream(sAppStream);
176 } 177 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Note.cpp ('k') | public/fpdf_dataavail.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698