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

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

Issue 818363006: fix a few linux compilation warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Restore origina cmslut.c Created 5 years, 11 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 "../../include/javascript/JavaScript.h" 7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Define.h" 9 #include "../../include/javascript/JS_Define.h"
10 #include "../../include/javascript/JS_Object.h" 10 #include "../../include/javascript/JS_Object.h"
11 // #include "../../include/javascript/JS_MsgBox.h"
12 // #include "../../include/javascript/JS_ResMgr.h"
13 #include "../../include/javascript/JS_Context.h" 11 #include "../../include/javascript/JS_Context.h"
14 12
15 JS_TIMER_MAPARRAY& GetTimeMap() 13 JS_TIMER_MAPARRAY& GetTimeMap()
16 { 14 {
17 // Leak the timer array at shutdown. 15 // Leak the timer array at shutdown.
18 static auto* timeMap = new JS_TIMER_MAPARRAY; 16 static auto* timeMap = new JS_TIMER_MAPARRAY;
19 return *timeMap; 17 return *timeMap;
20 } 18 }
21 19
22 int FXJS_MsgBox(CPDFDoc_Environment* pApp, CPDFSDK_PageView* pPageView, FX_LPCWS TR swMsg, FX_LPCWSTR swTitle, FX_UINT nType, FX_UINT nIcon) 20 int FXJS_MsgBox(CPDFDoc_Environment* pApp, CPDFSDK_PageView* pPageView, FX_LPCWS TR swMsg, FX_LPCWSTR swTitle, FX_UINT nType, FX_UINT nIcon)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 141
144 if (pContext->IsMsgBoxEnabled()) 142 if (pContext->IsMsgBoxEnabled())
145 { 143 {
146 CPDFDoc_Environment* pApp = pContext->GetReaderApp(); 144 CPDFDoc_Environment* pApp = pContext->GetReaderApp();
147 if(pApp) 145 if(pApp)
148 pApp->JS_appAlert(swMsg, NULL, 0, 3); 146 pApp->JS_appAlert(swMsg, NULL, 0, 3);
149 } 147 }
150 } 148 }
151 149
152 150
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698