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

Side by Side Diff: fpdfsdk/javascript/Document.cpp

Issue 2399213002: Remove remaining CPDFSDK_Document references (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/formfiller/cffl_interactiveformfiller.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 #include "fpdfsdk/javascript/Document.h" 7 #include "fpdfsdk/javascript/Document.h"
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 const std::vector<CJS_Value>& params, 369 const std::vector<CJS_Value>& params,
370 CJS_Value& vRet, 370 CJS_Value& vRet,
371 CFX_WideString& sError) { 371 CFX_WideString& sError) {
372 // Unsafe, not supported. 372 // Unsafe, not supported.
373 return TRUE; 373 return TRUE;
374 } 374 }
375 375
376 // exports the form data and mails the resulting fdf file as an attachment to 376 // exports the form data and mails the resulting fdf file as an attachment to
377 // all recipients. 377 // all recipients.
378 // comment: need reader supports 378 // comment: need reader supports
379 // note:
380 // int CPDFSDK_Document::mailForm(FX_BOOL bUI,String cto,string ccc,string
381 // cbcc,string cSubject,string cms);
382
383 FX_BOOL Document::mailForm(IJS_Context* cc, 379 FX_BOOL Document::mailForm(IJS_Context* cc,
384 const std::vector<CJS_Value>& params, 380 const std::vector<CJS_Value>& params,
385 CJS_Value& vRet, 381 CJS_Value& vRet,
386 CFX_WideString& sError) { 382 CFX_WideString& sError) {
387 if (!m_pFormFillEnv) { 383 if (!m_pFormFillEnv) {
388 sError = JSGetStringFromID(IDS_STRING_JSBADOBJECT); 384 sError = JSGetStringFromID(IDS_STRING_JSBADOBJECT);
389 return FALSE; 385 return FALSE;
390 } 386 }
391 if (!m_pFormFillEnv->GetSDKDocument()->GetPermissions( 387 if (!m_pFormFillEnv->GetSDKDocument()->GetPermissions(
392 FPDFPERM_EXTRACT_ACCESS)) { 388 FPDFPERM_EXTRACT_ACCESS)) {
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 } 1735 }
1740 } 1736 }
1741 1737
1742 for (const auto& pData : DelayDataForFieldAndControlIndex) 1738 for (const auto& pData : DelayDataForFieldAndControlIndex)
1743 Field::DoDelay(m_pFormFillEnv.Get(), pData.get()); 1739 Field::DoDelay(m_pFormFillEnv.Get(), pData.get());
1744 } 1740 }
1745 1741
1746 CJS_Document* Document::GetCJSDoc() const { 1742 CJS_Document* Document::GetCJSDoc() const {
1747 return static_cast<CJS_Document*>(m_pJSObject); 1743 return static_cast<CJS_Document*>(m_pJSObject);
1748 } 1744 }
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_interactiveformfiller.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698