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

Unified Diff: fpdfsdk/include/javascript/JS_Object.h

Issue 883393007: Kill off some dodgy JS callbacks (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: remove more now-unreachable code. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/javascript/app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/include/javascript/JS_Object.h
diff --git a/fpdfsdk/include/javascript/JS_Object.h b/fpdfsdk/include/javascript/JS_Object.h
index 7ee3464dc7c7697dc77c9532998bfc32bb377977..33c1a1ff628cb8830e7ac98a0886fdc54a460343 100644
--- a/fpdfsdk/include/javascript/JS_Object.h
+++ b/fpdfsdk/include/javascript/JS_Object.h
@@ -1,7 +1,7 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _JS_OBJECT_H_
@@ -28,10 +28,8 @@ public:
CPDFSDK_PageView * JSGetPageView(IFXJS_Context* cc);
int MsgBox(CPDFDoc_Environment * pApp, CPDFSDK_PageView* pPageView, FX_LPCWSTR swMsg, FX_LPCWSTR swTitle = NULL, FX_UINT nType = 0, FX_UINT nIcon = 0);
void Alert(CJS_Context* pContext, FX_LPCWSTR swMsg);
- FX_BOOL IsSafeMode(IFXJS_Context* cc);
protected:
-
CJS_Object* m_pJSObject;
};
@@ -40,7 +38,7 @@ class CJS_Object : public CFX_Object
public:
CJS_Object(JSFXObject pObject);
virtual ~CJS_Object(void);
-
+
void MakeWeak();
virtual FX_BOOL IsType(FX_LPCSTR sClassName){return TRUE;};
@@ -141,9 +139,9 @@ public:
}
int Find(FX_UINT nIndex)
- {
+ {
for (int i=0,sz=m_Array.GetSize(); i<sz; i++)
- {
+ {
if (JS_TIMER_MAP * pMap = m_Array.GetAt(i))
{
if (pMap->nID == nIndex)
@@ -165,8 +163,8 @@ class CJS_Timer
{
public:
CJS_Timer(CJS_EmbedObj * pObj, CPDFDoc_Environment* pApp):
- m_nTimerID(0),
- m_pEmbedObj(pObj),
+ m_nTimerID(0),
+ m_pEmbedObj(pObj),
m_bProcessing(FALSE),
m_dwStartTime(0),
m_dwTimeOut(0),
@@ -176,7 +174,7 @@ public:
m_pApp(pApp)
{
}
-
+
virtual ~CJS_Timer()
{
KillJSTimer();
@@ -184,7 +182,7 @@ public:
public:
FX_UINT SetJSTimer(FX_UINT nElapse)
- {
+ {
if (m_nTimerID)KillJSTimer();
IFX_SystemHandler* pHandler = m_pApp->GetSysHandler();
m_nTimerID = pHandler->SetTimer(nElapse,TimerProc);
@@ -243,7 +241,7 @@ public:
{
m_pRuntime = pRuntime;
}
-
+
CJS_Runtime* GetRuntime() const
{
return m_pRuntime;
@@ -277,7 +275,7 @@ public:
};
private:
- FX_UINT m_nTimerID;
+ FX_UINT m_nTimerID;
CJS_EmbedObj* m_pEmbedObj;
FX_BOOL m_bProcessing;
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/javascript/app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698