Chromium Code Reviews| 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/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 Loading... | |
| 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); |
|
Tom Sepez
2016/10/27 23:40:46
consistency with line 720.
| |
| 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 Loading... | |
| 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 } |
| OLD | NEW |