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

Side by Side Diff: fpdfsdk/src/javascript/JS_Context.cpp

Issue 1288393004: Merge to XFA: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: self review Created 5 years, 4 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/src/fsdk_rendercontext.cpp ('k') | fpdfsdk/src/javascript/JS_Object.cpp » ('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 "../../include/javascript/JavaScript.h" 7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 //#include "../../include/javascript/JS_ResMgr.h" 9 //#include "../../include/javascript/JS_ResMgr.h"
10 #include "../../include/javascript/JS_Context.h" 10 #include "../../include/javascript/JS_Context.h"
11 #include "../../include/javascript/JS_EventHandler.h" 11 #include "../../include/javascript/JS_EventHandler.h"
12 #include "../../include/javascript/JS_Runtime.h" 12 #include "../../include/javascript/JS_Runtime.h"
13 #include "../../include/javascript/resource.h" 13 #include "../../include/javascript/resource.h"
14 14
15 /* -------------------------- CJS_Context -------------------------- */ 15 /* -------------------------- CJS_Context -------------------------- */
16 16
17 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) 17 CJS_Context::CJS_Context(CJS_Runtime* pRuntime)
18 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { 18 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) {
19 m_pEventHandler = new CJS_EventHandler(this); 19 m_pEventHandler = new CJS_EventHandler(this);
20 } 20 }
21 21
22 CJS_Context::~CJS_Context(void) { 22 CJS_Context::~CJS_Context() {
23 delete m_pEventHandler; 23 delete m_pEventHandler;
24 } 24 }
25 25
26 CPDFSDK_Document* CJS_Context::GetReaderDocument() { 26 CPDFSDK_Document* CJS_Context::GetReaderDocument() {
27 ASSERT(m_pRuntime != NULL); 27 ASSERT(m_pRuntime != NULL);
28 28
29 return m_pRuntime->GetReaderDocument(); 29 return m_pRuntime->GetReaderDocument();
30 } 30 }
31 31
32 CPDFDoc_Environment* CJS_Context::GetReaderApp() { 32 CPDFDoc_Environment* CJS_Context::GetReaderApp() {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { 350 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) {
351 ASSERT(m_pEventHandler != NULL); 351 ASSERT(m_pEventHandler != NULL);
352 m_pEventHandler->OnBatchExec(pTarget); 352 m_pEventHandler->OnBatchExec(pTarget);
353 } 353 }
354 354
355 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, 355 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget,
356 const CFX_WideString& strTargetName) { 356 const CFX_WideString& strTargetName) {
357 ASSERT(m_pEventHandler != NULL); 357 ASSERT(m_pEventHandler != NULL);
358 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); 358 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName);
359 } 359 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_rendercontext.cpp ('k') | fpdfsdk/src/javascript/JS_Object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698