OLD | NEW |
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" | 7 #include "fpdfsdk/include/pdfwindow/PWL_Signature.h" |
8 | 8 |
| 9 #include "core/include/fxge/fx_ge.h" |
9 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" | 10 #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" |
10 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" | 11 #include "fpdfsdk/include/pdfwindow/PWL_Label.h" |
11 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" | 12 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" |
12 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" | 13 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" |
13 | 14 |
14 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} | 15 CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} |
15 | 16 |
16 CPWL_Signature_Image::~CPWL_Signature_Image() {} | 17 CPWL_Signature_Image::~CPWL_Signature_Image() {} |
17 | 18 |
18 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) { | 19 void CPWL_Signature_Image::SetImage(CFX_DIBSource* pImage) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, | 169 pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, |
169 CPWL_Utils::GetCenterSquare(GetClientRect()), | 170 CPWL_Utils::GetCenterSquare(GetClientRect()), |
170 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), | 171 CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), |
171 CPWL_Color(COLORTYPE_TRANSPARENT), 255); | 172 CPWL_Color(COLORTYPE_TRANSPARENT), 255); |
172 } | 173 } |
173 } | 174 } |
174 | 175 |
175 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { | 176 void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { |
176 CPWL_Wnd::GetThisAppearanceStream(sAppStream); | 177 CPWL_Wnd::GetThisAppearanceStream(sAppStream); |
177 } | 178 } |
OLD | NEW |