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

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

Issue 1272653005: clang-format all pdfium code, again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 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 "../../../third_party/base/nonstd_unique_ptr.h" 7 #include "../../../third_party/base/nonstd_unique_ptr.h"
8 #include "../../include/javascript/JavaScript.h" 8 #include "../../include/javascript/JavaScript.h"
9 #include "../../include/javascript/IJavaScript.h" 9 #include "../../include/javascript/IJavaScript.h"
10 #include "../../include/javascript/JS_Define.h" 10 #include "../../include/javascript/JS_Define.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 iType = CJS_Value(isolate, pValue, VT_unknown).ToInt(); 295 iType = CJS_Value(isolate, pValue, VT_unknown).ToInt();
296 } 296 }
297 297
298 if (swMsg == L"") { 298 if (swMsg == L"") {
299 CJS_Array carray(isolate); 299 CJS_Array carray(isolate);
300 if (params[0].ConvertToArray(carray)) { 300 if (params[0].ConvertToArray(carray)) {
301 int iLenth = carray.GetLength(); 301 int iLenth = carray.GetLength();
302 CJS_Value* pValue = new CJS_Value(isolate); 302 CJS_Value* pValue = new CJS_Value(isolate);
303 // if (iLenth == 1) 303 // if (iLenth == 1)
304 // pValue = new 304 // pValue = new
305 //CJS_Value(isolate); 305 // CJS_Value(isolate);
306 // else if (iLenth > 1) 306 // else if (iLenth > 1)
307 // pValue = new 307 // pValue = new
308 //CJS_Value[iLenth]; 308 // CJS_Value[iLenth];
309 309
310 for (int i = 0; i < iLenth; i++) { 310 for (int i = 0; i < iLenth; i++) {
311 carray.GetElement(i, *pValue); 311 carray.GetElement(i, *pValue);
312 swMsg += (*pValue).ToCFXWideString(); 312 swMsg += (*pValue).ToCFXWideString();
313 if (i < iLenth - 1) 313 if (i < iLenth - 1)
314 swMsg += L", "; 314 swMsg += L", ";
315 } 315 }
316 316
317 delete pValue; 317 delete pValue;
318 } 318 }
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 CFX_WideString& sError) { 863 CFX_WideString& sError) {
864 return FALSE; 864 return FALSE;
865 } 865 }
866 866
867 FX_BOOL app::execDialog(IFXJS_Context* cc, 867 FX_BOOL app::execDialog(IFXJS_Context* cc,
868 const CJS_Parameters& params, 868 const CJS_Parameters& params,
869 CJS_Value& vRet, 869 CJS_Value& vRet,
870 CFX_WideString& sError) { 870 CFX_WideString& sError) {
871 return TRUE; 871 return TRUE;
872 } 872 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698