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

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

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Sort headers Created 4 years, 10 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
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 "JS_Value.h" 7 #include "fpdfsdk/src/javascript/JS_Value.h"
8 8
9 #include <time.h> 9 #include <time.h>
10 #include <algorithm> 10 #include <algorithm>
11 #include <cmath> 11 #include <cmath>
12 #include <limits> 12 #include <limits>
13 13
14 #include "Document.h" 14 #include "fpdfsdk/src/javascript/Document.h"
15 #include "JS_Define.h" 15 #include "fpdfsdk/src/javascript/JS_Define.h"
16 #include "JS_Object.h" 16 #include "fpdfsdk/src/javascript/JS_Object.h"
17 17
18 static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; 18 static const FX_DWORD g_nan[2] = {0, 0x7FF80000};
19 static double GetNan() { 19 static double GetNan() {
20 return *(double*)g_nan; 20 return *(double*)g_nan;
21 } 21 }
22 22
23 CJS_Value::CJS_Value(CJS_Runtime* pRuntime) 23 CJS_Value::CJS_Value(CJS_Runtime* pRuntime)
24 : m_eType(VT_unknown), m_pJSRuntime(pRuntime) { 24 : m_eType(VT_unknown), m_pJSRuntime(pRuntime) {
25 } 25 }
26 26
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 for (int i = 0; i < nKeywords; ++i) { 905 for (int i = 0; i < nKeywords; ++i) {
906 const wchar_t* property = va_arg(ap, const wchar_t*); 906 const wchar_t* property = va_arg(ap, const wchar_t*);
907 v8::Local<v8::Value> v8Value = 907 v8::Local<v8::Value> v8Value =
908 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property); 908 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property);
909 if (!v8Value->IsUndefined()) 909 if (!v8Value->IsUndefined())
910 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown); 910 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown);
911 } 911 }
912 va_end(ap); 912 va_end(ap);
913 return result; 913 return result;
914 } 914 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698