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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1859303002: Mark FPDF_BStr_* with DLLEXPORT / STDCALL. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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/fpdfview.cpp ('k') | no next file » | 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 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 (FPDF_WIDESTRING)bsContentType.GetBuffer(bsContentType.GetLength()); 327 (FPDF_WIDESTRING)bsContentType.GetBuffer(bsContentType.GetLength());
328 328
329 CFX_ByteString bsEncode = CFX_WideString(wsEncode).UTF16LE_Encode(); 329 CFX_ByteString bsEncode = CFX_WideString(wsEncode).UTF16LE_Encode();
330 FPDF_WIDESTRING encode = 330 FPDF_WIDESTRING encode =
331 (FPDF_WIDESTRING)bsEncode.GetBuffer(bsEncode.GetLength()); 331 (FPDF_WIDESTRING)bsEncode.GetBuffer(bsEncode.GetLength());
332 332
333 CFX_ByteString bsHeader = CFX_WideString(wsHeader).UTF16LE_Encode(); 333 CFX_ByteString bsHeader = CFX_WideString(wsHeader).UTF16LE_Encode();
334 FPDF_WIDESTRING header = 334 FPDF_WIDESTRING header =
335 (FPDF_WIDESTRING)bsHeader.GetBuffer(bsHeader.GetLength()); 335 (FPDF_WIDESTRING)bsHeader.GetBuffer(bsHeader.GetLength());
336 336
337 FPDF_BSTR respone; 337 FPDF_BSTR response;
338 FPDF_BStr_Init(&respone); 338 FPDF_BStr_Init(&response);
339 m_pInfo->FFI_PostRequestURL(m_pInfo, URL, data, contentType, encode, 339 m_pInfo->FFI_PostRequestURL(m_pInfo, URL, data, contentType, encode,
340 header, &respone); 340 header, &response);
341 341
342 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( 342 CFX_WideString wsRet = CFX_WideString::FromUTF16LE(
343 (unsigned short*)respone.str, respone.len / sizeof(unsigned short)); 343 (unsigned short*)response.str, response.len / sizeof(unsigned short));
344 FPDF_BStr_Clear(&respone); 344 FPDF_BStr_Clear(&response);
345 345
346 return wsRet; 346 return wsRet;
347 } 347 }
348 return L""; 348 return L"";
349 } 349 }
350 350
351 FPDF_BOOL FFI_PutRequestURL(const FX_WCHAR* wsURL, 351 FPDF_BOOL FFI_PutRequestURL(const FX_WCHAR* wsURL,
352 const FX_WCHAR* wsData, 352 const FX_WCHAR* wsData,
353 const FX_WCHAR* wsEncode) { 353 const FX_WCHAR* wsEncode) {
354 if (m_pInfo && m_pInfo->FFI_PutRequestURL) { 354 if (m_pInfo && m_pInfo->FFI_PutRequestURL) {
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 FX_BOOL m_bTakeOverPage; 647 FX_BOOL m_bTakeOverPage;
648 #endif // PDF_ENABLE_XFA 648 #endif // PDF_ENABLE_XFA
649 FX_BOOL m_bEnterWidget; 649 FX_BOOL m_bEnterWidget;
650 FX_BOOL m_bExitWidget; 650 FX_BOOL m_bExitWidget;
651 FX_BOOL m_bOnWidget; 651 FX_BOOL m_bOnWidget;
652 FX_BOOL m_bValid; 652 FX_BOOL m_bValid;
653 FX_BOOL m_bLocked; 653 FX_BOOL m_bLocked;
654 }; 654 };
655 655
656 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 656 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698