summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/app.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-03-28 16:59:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-28 16:59:30 -0700
commit41a53ad771411db3cdd98822f9d240456767fba8 (patch)
tree55ba380c593da9d1c0b8a42bec0ed949b1b29b78 /fpdfsdk/javascript/app.h
parent4f1f41f338ce0899e48605c82375a72883f4eb7c (diff)
downloadpdfium-41a53ad771411db3cdd98822f9d240456767fba8.tar.xz
use std::vector in more places in JavaScript bindings code.
use unique_ptrs for app:m_Timers. BUG= Review URL: https://codereview.chromium.org/1834203002
Diffstat (limited to 'fpdfsdk/javascript/app.h')
-rw-r--r--fpdfsdk/javascript/app.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/app.h b/fpdfsdk/javascript/app.h
index 764f73b2f7..c6cda555d9 100644
--- a/fpdfsdk/javascript/app.h
+++ b/fpdfsdk/javascript/app.h
@@ -7,6 +7,7 @@
#ifndef FPDFSDK_JAVASCRIPT_APP_H_
#define FPDFSDK_JAVASCRIPT_APP_H_
+#include <memory>
#include <vector>
#include "fpdfsdk/javascript/JS_Define.h"
@@ -40,7 +41,6 @@ class app : public CJS_EmbedObj {
app(CJS_Object* pJSObject);
~app() override;
- public:
FX_BOOL activeDocs(IJS_Context* cc,
CJS_PropValue& vp,
CFX_WideString& sError);
@@ -160,9 +160,11 @@ class app : public CJS_EmbedObj {
void TimerProc(CJS_Timer* pTimer) override;
void RunJsScript(CJS_Runtime* pRuntime, const CFX_WideString& wsScript);
+ void ClearTimerCommon(const CJS_Value& param);
+
bool m_bCalculate;
bool m_bRuntimeHighLight;
- CFX_ArrayTemplate<CJS_Timer*> m_aTimer;
+ std::vector<std::unique_ptr<CJS_Timer>> m_Timers;
};
class CJS_App : public CJS_Object {