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

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

Issue 1385983002: Remove JavaScript.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: small comment Created 5 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/src/javascript/JS_Runtime.cpp ('k') | fpdfsdk/src/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 <time.h> 7 #include <time.h>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 10
11 #include "../../include/javascript/JavaScript.h"
12 #include "../../include/javascript/JS_Define.h" 11 #include "../../include/javascript/JS_Define.h"
13 #include "../../include/javascript/JS_Object.h" 12 #include "../../include/javascript/JS_Object.h"
14 #include "../../include/javascript/JS_Value.h" 13 #include "../../include/javascript/JS_Value.h"
15 #include "../../include/javascript/Document.h" 14 #include "../../include/javascript/Document.h"
16 15
17 static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; 16 static const FX_DWORD g_nan[2] = {0, 0x7FF80000};
18 static double GetNan() { 17 static double GetNan() {
19 return *(double*)g_nan; 18 return *(double*)g_nan;
20 } 19 }
21 20
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 return day * 86400000 + time; 856 return day * 86400000 + time;
858 } 857 }
859 858
860 bool JS_PortIsNan(double d) { 859 bool JS_PortIsNan(double d) {
861 return d != d; 860 return d != d;
862 } 861 }
863 862
864 double JS_LocalTime(double d) { 863 double JS_LocalTime(double d) {
865 return JS_GetDateTime() + _getDaylightSavingTA(d); 864 return JS_GetDateTime() + _getDaylightSavingTA(d);
866 } 865 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Runtime.cpp ('k') | fpdfsdk/src/javascript/PublicMethods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698