From e1e7bd037538c6b31537fc0e3e01c508dab68132 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 8 Aug 2016 13:03:16 -0700 Subject: Remove MsgBox()/Alert() from CJS_EmbedObj. They're only related to the |app| object, not all embed's. Alert() itself unused. Review-Url: https://codereview.chromium.org/2224073002 --- fpdfsdk/javascript/JS_Object.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'fpdfsdk/javascript/JS_Object.h') diff --git a/fpdfsdk/javascript/JS_Object.h b/fpdfsdk/javascript/JS_Object.h index 3f0db0ea71..5875861fff 100644 --- a/fpdfsdk/javascript/JS_Object.h +++ b/fpdfsdk/javascript/JS_Object.h @@ -25,13 +25,6 @@ class CJS_EmbedObj { CJS_Object* GetJSObject() const { return m_pJSObject; } - int MsgBox(CPDFDoc_Environment* pApp, - const FX_WCHAR* swMsg, - const FX_WCHAR* swTitle, - FX_UINT nType, - FX_UINT nIcon); - void Alert(CJS_Context* pContext, const FX_WCHAR* swMsg); - protected: CJS_Object* m_pJSObject; }; @@ -53,9 +46,7 @@ class CJS_Object { void SetEmbedObject(CJS_EmbedObj* pObj) { m_pEmbedObj.reset(pObj); } CJS_EmbedObj* GetEmbedObject() const { return m_pEmbedObj.get(); } - static void Alert(CJS_Context* pContext, const FX_WCHAR* swMsg); - - v8::Isolate* GetIsolate() { return m_pIsolate; } + v8::Isolate* GetIsolate() const { return m_pIsolate; } protected: std::unique_ptr m_pEmbedObj; -- cgit v1.2.3