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

Side by Side Diff: fpdfsdk/javascript/cjs_context.cpp

Issue 2167343002: Remove EnableMessageBox() / IsMessageBoxEnabled() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « fpdfsdk/javascript/cjs_context.h ('k') | fpdfsdk/javascript/ijs_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "fpdfsdk/javascript/cjs_context.h" 7 #include "fpdfsdk/javascript/cjs_context.h"
8 8
9 #include "fpdfsdk/javascript/JS_EventHandler.h" 9 #include "fpdfsdk/javascript/JS_EventHandler.h"
10 #include "fpdfsdk/javascript/cjs_runtime.h" 10 #include "fpdfsdk/javascript/cjs_runtime.h"
11 #include "fpdfsdk/javascript/resource.h" 11 #include "fpdfsdk/javascript/resource.h"
12 12
13 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) 13 CJS_Context::CJS_Context(CJS_Runtime* pRuntime)
14 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { 14 : m_pRuntime(pRuntime), m_bBusy(FALSE) {
15 m_pEventHandler = new CJS_EventHandler(this); 15 m_pEventHandler = new CJS_EventHandler(this);
16 } 16 }
17 17
18 CJS_Context::~CJS_Context() { 18 CJS_Context::~CJS_Context() {
19 delete m_pEventHandler; 19 delete m_pEventHandler;
20 } 20 }
21 21
22 CPDFSDK_Document* CJS_Context::GetReaderDocument() { 22 CPDFSDK_Document* CJS_Context::GetReaderDocument() {
23 return m_pRuntime->GetReaderDocument(); 23 return m_pRuntime->GetReaderDocument();
24 } 24 }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 void CJS_Context::OnConsole_Exec() { 263 void CJS_Context::OnConsole_Exec() {
264 m_pEventHandler->OnConsole_Exec(); 264 m_pEventHandler->OnConsole_Exec();
265 } 265 }
266 266
267 void CJS_Context::OnExternal_Exec() { 267 void CJS_Context::OnExternal_Exec() {
268 m_pEventHandler->OnExternal_Exec(); 268 m_pEventHandler->OnExternal_Exec();
269 } 269 }
270 270
271 void CJS_Context::EnableMessageBox(FX_BOOL bEnable) {
272 m_bMsgBoxEnable = bEnable;
273 }
274
275 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { 271 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) {
276 m_pEventHandler->OnBatchExec(pTarget); 272 m_pEventHandler->OnBatchExec(pTarget);
277 } 273 }
278 274
279 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, 275 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget,
280 const CFX_WideString& strTargetName) { 276 const CFX_WideString& strTargetName) {
281 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); 277 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName);
282 } 278 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/cjs_context.h ('k') | fpdfsdk/javascript/ijs_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698