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

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

Issue 1546133002: Speculative IWYU fix for failing Chromium DEPS roll. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 12 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 | « no previous file | no next file » | 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 "util.h" 7 #include "fpdfsdk/src/javascript/util.h"
8 8
9 #include "JS_Context.h" 9 #include <time.h>
10 #include "JS_Define.h" 10
11 #include "JS_EventHandler.h"
12 #include "JS_Object.h"
13 #include "JS_Runtime.h"
14 #include "JS_Value.h"
15 #include "PublicMethods.h"
16 #include "core/include/fxcrt/fx_ext.h" 11 #include "core/include/fxcrt/fx_ext.h"
17 #include "fpdfsdk/include/javascript/IJavaScript.h" 12 #include "fpdfsdk/include/javascript/IJavaScript.h"
18 #include "resource.h" 13 #include "fpdfsdk/src/javascript/JS_Context.h"
14 #include "fpdfsdk/src/javascript/JS_Define.h"
15 #include "fpdfsdk/src/javascript/JS_EventHandler.h"
16 #include "fpdfsdk/src/javascript/JS_Object.h"
17 #include "fpdfsdk/src/javascript/JS_Runtime.h"
18 #include "fpdfsdk/src/javascript/JS_Value.h"
19 #include "fpdfsdk/src/javascript/PublicMethods.h"
20 #include "fpdfsdk/src/javascript/resource.h"
19 21
20 #if _FX_OS_ == _FX_ANDROID_ 22 #if _FX_OS_ == _FX_ANDROID_
21 #include <ctype.h> 23 #include <ctype.h>
22 #endif 24 #endif
23 25
24 BEGIN_JS_STATIC_CONST(CJS_Util) 26 BEGIN_JS_STATIC_CONST(CJS_Util)
25 END_JS_STATIC_CONST() 27 END_JS_STATIC_CONST()
26 28
27 BEGIN_JS_STATIC_PROP(CJS_Util) 29 BEGIN_JS_STATIC_PROP(CJS_Util)
28 END_JS_STATIC_PROP() 30 END_JS_STATIC_PROP()
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 int iSize = params.size(); 543 int iSize = params.size();
542 if (iSize == 0) 544 if (iSize == 0)
543 return FALSE; 545 return FALSE;
544 int nByte = params[0].ToInt(); 546 int nByte = params[0].ToInt();
545 unsigned char cByte = (unsigned char)nByte; 547 unsigned char cByte = (unsigned char)nByte;
546 CFX_WideString csValue; 548 CFX_WideString csValue;
547 csValue.Format(L"%c", cByte); 549 csValue.Format(L"%c", cByte);
548 vRet = csValue.c_str(); 550 vRet = csValue.c_str();
549 return TRUE; 551 return TRUE;
550 } 552 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698