summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/JS_Context.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-11 14:00:52 -0700
committerLei Zhang <thestig@chromium.org>2015-06-11 14:00:52 -0700
commitcf2e4c3ecc2a66f0a01e6a1d8c20dcb73e4b8024 (patch)
treedbe0f7d7435d7abb7a939b8ce0e0745e198ee8b1 /fpdfsdk/src/javascript/JS_Context.cpp
parent864773a57a54763b97bef7d38f65375b15c14437 (diff)
downloadpdfium-cf2e4c3ecc2a66f0a01e6a1d8c20dcb73e4b8024.tar.xz
Remove trailing whitespaces in fpdfsdk.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1173343004.
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Context.cpp')
-rw-r--r--fpdfsdk/src/javascript/JS_Context.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp
index 362844509f..924ab1ee19 100644
--- a/fpdfsdk/src/javascript/JS_Context.cpp
+++ b/fpdfsdk/src/javascript/JS_Context.cpp
@@ -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
#include "../../include/javascript/JavaScript.h"
@@ -14,7 +14,7 @@
/* -------------------------- CJS_Context -------------------------- */
-CJS_Context::CJS_Context(CJS_Runtime* pRuntime) :
+CJS_Context::CJS_Context(CJS_Runtime* pRuntime) :
m_pRuntime(pRuntime),
m_bBusy(FALSE),
m_bMsgBoxEnable(TRUE)
@@ -41,17 +41,17 @@ CPDFSDK_Document* CJS_Context::GetReaderDocument()
CPDFDoc_Environment* CJS_Context::GetReaderApp()
{
ASSERT(m_pRuntime != NULL);
-
+
return m_pRuntime->GetReaderApp();
}
FX_BOOL CJS_Context::DoJob(int nMode, const CFX_WideString& script, CFX_WideString& info)
{
if (m_bBusy)
- {
+ {
info = JSGetStringFromID(this, IDS_STRING_JSBUSY);
return FALSE;
- }
+ }
m_bBusy = TRUE;
@@ -66,7 +66,7 @@ FX_BOOL CJS_Context::DoJob(int nMode, const CFX_WideString& script, CFX_WideStri
}
FXJSErr error ={NULL,NULL, 0};
- int nRet = 0;
+ int nRet = 0;
if (script.GetLength() > 0)
{
@@ -99,7 +99,7 @@ FX_BOOL CJS_Context::DoJob(int nMode, const CFX_WideString& script, CFX_WideStri
m_pRuntime->RemoveEventInLoop(m_pEventHandler->TargetName(), m_pEventHandler->EventType());
m_pEventHandler->Destroy();
- m_bBusy = FALSE;
+ m_bBusy = FALSE;
return nRet >= 0;
}
@@ -342,7 +342,7 @@ void CJS_Context::OnExternal_Exec()
void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget)
{
- ASSERT(m_pEventHandler != NULL);
+ ASSERT(m_pEventHandler != NULL);
m_pEventHandler->OnBatchExec(pTarget);
}