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

Side by Side Diff: fpdfsdk/javascript/PublicMethods.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
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/PublicMethods.h" 7 #include "fpdfsdk/javascript/PublicMethods.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fxcrt/include/fx_ext.h" 13 #include "core/fxcrt/include/fx_ext.h"
14 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. 14 #include "fpdfsdk/include/fsdk_mgr.h"
15 #include "fpdfsdk/include/javascript/IJavaScript.h"
16 #include "fpdfsdk/javascript/Field.h" 15 #include "fpdfsdk/javascript/Field.h"
17 #include "fpdfsdk/javascript/JS_Context.h" 16 #include "fpdfsdk/javascript/JS_Context.h"
18 #include "fpdfsdk/javascript/JS_Define.h" 17 #include "fpdfsdk/javascript/JS_Define.h"
19 #include "fpdfsdk/javascript/JS_EventHandler.h" 18 #include "fpdfsdk/javascript/JS_EventHandler.h"
20 #include "fpdfsdk/javascript/JS_Object.h" 19 #include "fpdfsdk/javascript/JS_Object.h"
21 #include "fpdfsdk/javascript/JS_Runtime.h" 20 #include "fpdfsdk/javascript/JS_Runtime.h"
22 #include "fpdfsdk/javascript/JS_Value.h" 21 #include "fpdfsdk/javascript/JS_Value.h"
23 #include "fpdfsdk/javascript/color.h" 22 #include "fpdfsdk/javascript/color.h"
24 #include "fpdfsdk/javascript/resource.h" 23 #include "fpdfsdk/javascript/resource.h"
25 #include "fpdfsdk/javascript/util.h" 24 #include "fpdfsdk/javascript/util.h"
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 nums.SetElement(nIndex, CJS_Value(pRuntime, sPart.c_str())); 1874 nums.SetElement(nIndex, CJS_Value(pRuntime, sPart.c_str()));
1876 } 1875 }
1877 1876
1878 if (nums.GetLength() > 0) 1877 if (nums.GetLength() > 0)
1879 vRet = nums; 1878 vRet = nums;
1880 else 1879 else
1881 vRet.SetNull(); 1880 vRet.SetNull();
1882 1881
1883 return TRUE; 1882 return TRUE;
1884 } 1883 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698