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

Side by Side Diff: fpdfsdk/cpdfsdk_environment.cpp

Issue 2343693002: Replace FX_UINT with unsigned int (Closed)
Patch Set: Remove #s Created 4 years, 3 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/cpdfsdk_document.cpp ('k') | fpdfsdk/cpdfsdk_pageview.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/cpdfsdk_environment.h" 7 #include "fpdfsdk/include/cpdfsdk_environment.h"
8 8
9 #include "fpdfsdk/formfiller/cffl_iformfiller.h" 9 #include "fpdfsdk/formfiller/cffl_iformfiller.h"
10 #include "fpdfsdk/include/cpdfsdk_annothandlermgr.h" 10 #include "fpdfsdk/include/cpdfsdk_annothandlermgr.h"
(...skipping 26 matching lines...) Expand all
37 CPDFXFA_App* pProvider = CPDFXFA_App::GetInstance(); 37 CPDFXFA_App* pProvider = CPDFXFA_App::GetInstance();
38 if (pProvider->m_pEnvList.GetSize() == 0) 38 if (pProvider->m_pEnvList.GetSize() == 0)
39 pProvider->SetJavaScriptInitialized(FALSE); 39 pProvider->SetJavaScriptInitialized(FALSE);
40 #endif // PDF_ENABLE_XFA 40 #endif // PDF_ENABLE_XFA
41 if (m_pInfo && m_pInfo->Release) 41 if (m_pInfo && m_pInfo->Release)
42 m_pInfo->Release(m_pInfo); 42 m_pInfo->Release(m_pInfo);
43 } 43 }
44 44
45 int CPDFSDK_Environment::JS_appAlert(const FX_WCHAR* Msg, 45 int CPDFSDK_Environment::JS_appAlert(const FX_WCHAR* Msg,
46 const FX_WCHAR* Title, 46 const FX_WCHAR* Title,
47 FX_UINT Type, 47 uint32_t Type,
48 FX_UINT Icon) { 48 uint32_t Icon) {
49 if (!m_pInfo || !m_pInfo->m_pJsPlatform || 49 if (!m_pInfo || !m_pInfo->m_pJsPlatform ||
50 !m_pInfo->m_pJsPlatform->app_alert) { 50 !m_pInfo->m_pJsPlatform->app_alert) {
51 return -1; 51 return -1;
52 } 52 }
53 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encode(); 53 CFX_ByteString bsMsg = CFX_WideString(Msg).UTF16LE_Encode();
54 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_Encode(); 54 CFX_ByteString bsTitle = CFX_WideString(Title).UTF16LE_Encode();
55 return m_pInfo->m_pJsPlatform->app_alert( 55 return m_pInfo->m_pJsPlatform->app_alert(
56 m_pInfo->m_pJsPlatform, AsFPDFWideString(&bsMsg), 56 m_pInfo->m_pJsPlatform, AsFPDFWideString(&bsMsg),
57 AsFPDFWideString(&bsTitle), Type, Icon); 57 AsFPDFWideString(&bsTitle), Type, Icon);
58 } 58 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (!m_pActionHandler) 205 if (!m_pActionHandler)
206 m_pActionHandler.reset(new CPDFSDK_ActionHandler()); 206 m_pActionHandler.reset(new CPDFSDK_ActionHandler());
207 return m_pActionHandler.get(); 207 return m_pActionHandler.get();
208 } 208 }
209 209
210 CFFL_IFormFiller* CPDFSDK_Environment::GetIFormFiller() { 210 CFFL_IFormFiller* CPDFSDK_Environment::GetIFormFiller() {
211 if (!m_pIFormFiller) 211 if (!m_pIFormFiller)
212 m_pIFormFiller.reset(new CFFL_IFormFiller(this)); 212 m_pIFormFiller.reset(new CFFL_IFormFiller(this));
213 return m_pIFormFiller.get(); 213 return m_pIFormFiller.get();
214 } 214 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_document.cpp ('k') | fpdfsdk/cpdfsdk_pageview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698