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

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

Issue 2454263002: Fix more FX_BOOL / int noise in core/fpdfsdk (Closed)
Patch Set: nit Created 4 years, 1 month 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 | « core/fxge/win32/fx_win32_gdipext.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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 cBcc = params[3].ToCFXWideString(pRuntime); 726 cBcc = params[3].ToCFXWideString(pRuntime);
727 if (params.size() >= 5) 727 if (params.size() >= 5)
728 cSubject = params[4].ToCFXWideString(pRuntime); 728 cSubject = params[4].ToCFXWideString(pRuntime);
729 if (params.size() >= 6) 729 if (params.size() >= 6)
730 cMsg = params[5].ToCFXWideString(pRuntime); 730 cMsg = params[5].ToCFXWideString(pRuntime);
731 731
732 if (params.size() >= 1 && params[0].GetType() == CJS_Value::VT_object) { 732 if (params.size() >= 1 && params[0].GetType() == CJS_Value::VT_object) {
733 v8::Local<v8::Object> pObj = params[0].ToV8Object(pRuntime); 733 v8::Local<v8::Object> pObj = params[0].ToV8Object(pRuntime);
734 734
735 v8::Local<v8::Value> pValue = pRuntime->GetObjectProperty(pObj, L"bUI"); 735 v8::Local<v8::Value> pValue = pRuntime->GetObjectProperty(pObj, L"bUI");
736 bUI = CJS_Value(pRuntime, pValue).ToInt(pRuntime); 736 bUI = CJS_Value(pRuntime, pValue).ToBool(pRuntime);
737 737
738 pValue = pRuntime->GetObjectProperty(pObj, L"cTo"); 738 pValue = pRuntime->GetObjectProperty(pObj, L"cTo");
739 cTo = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime); 739 cTo = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime);
740 740
741 pValue = pRuntime->GetObjectProperty(pObj, L"cCc"); 741 pValue = pRuntime->GetObjectProperty(pObj, L"cCc");
742 cCc = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime); 742 cCc = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime);
743 743
744 pValue = pRuntime->GetObjectProperty(pObj, L"cBcc"); 744 pValue = pRuntime->GetObjectProperty(pObj, L"cBcc");
745 cBcc = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime); 745 cBcc = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime);
746 746
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 } 1716 }
1717 } 1717 }
1718 1718
1719 for (const auto& pData : DelayDataForFieldAndControlIndex) 1719 for (const auto& pData : DelayDataForFieldAndControlIndex)
1720 Field::DoDelay(m_pFormFillEnv.Get(), pData.get()); 1720 Field::DoDelay(m_pFormFillEnv.Get(), pData.get());
1721 } 1721 }
1722 1722
1723 CJS_Document* Document::GetCJSDoc() const { 1723 CJS_Document* Document::GetCJSDoc() const {
1724 return static_cast<CJS_Document*>(m_pJSObject); 1724 return static_cast<CJS_Document*>(m_pJSObject);
1725 } 1725 }
OLDNEW
« no previous file with comments | « core/fxge/win32/fx_win32_gdipext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698