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

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

Issue 1847583004: Move the fpdfsdk/include/javascript folder (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/javascript/JS_Runtime_Stub.cpp ('k') | fpdfsdk/javascript/PublicMethods.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 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/JS_Value.h" 7 #include "fpdfsdk/javascript/JS_Value.h"
8 8
9 #include <time.h> 9 #include <time.h>
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 FX_BOOL CJS_Value::ConvertToDate(CJS_Date& date) const { 276 FX_BOOL CJS_Value::ConvertToDate(CJS_Date& date) const {
277 if (IsDateObject()) { 277 if (IsDateObject()) {
278 date.Attach(m_pValue); 278 date.Attach(m_pValue);
279 return TRUE; 279 return TRUE;
280 } 280 }
281 281
282 return FALSE; 282 return FALSE;
283 } 283 }
284 284
285 /* ---------------------------- CJS_PropValue ---------------------------- */
286
287 CJS_PropValue::CJS_PropValue(const CJS_Value& value) 285 CJS_PropValue::CJS_PropValue(const CJS_Value& value)
288 : CJS_Value(value), m_bIsSetting(0) {} 286 : CJS_Value(value), m_bIsSetting(0) {}
289 287
290 CJS_PropValue::CJS_PropValue(CJS_Runtime* pRuntime) 288 CJS_PropValue::CJS_PropValue(CJS_Runtime* pRuntime)
291 : CJS_Value(pRuntime), m_bIsSetting(0) {} 289 : CJS_Value(pRuntime), m_bIsSetting(0) {}
292 290
293 CJS_PropValue::~CJS_PropValue() {} 291 CJS_PropValue::~CJS_PropValue() {}
294 292
295 void CJS_PropValue::operator<<(int iValue) { 293 void CJS_PropValue::operator<<(int iValue) {
296 ASSERT(!m_bIsSetting); 294 ASSERT(!m_bIsSetting);
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 for (size_t i = 0; i < nKeywords; ++i) { 894 for (size_t i = 0; i < nKeywords; ++i) {
897 const wchar_t* property = va_arg(ap, const wchar_t*); 895 const wchar_t* property = va_arg(ap, const wchar_t*);
898 v8::Local<v8::Value> v8Value = 896 v8::Local<v8::Value> v8Value =
899 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property); 897 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property);
900 if (!v8Value->IsUndefined()) 898 if (!v8Value->IsUndefined())
901 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown); 899 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown);
902 } 900 }
903 va_end(ap); 901 va_end(ap);
904 return result; 902 return result;
905 } 903 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/JS_Runtime_Stub.cpp ('k') | fpdfsdk/javascript/PublicMethods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698