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

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

Issue 1847583004: Move the fpdfsdk/include/javascript folder (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/cjs_runtime.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/JS_Context.h" 7 #include "fpdfsdk/javascript/cjs_context.h"
8 8
9 #include "fpdfsdk/include/javascript/IJavaScript.h"
10 #include "fpdfsdk/javascript/JS_EventHandler.h" 9 #include "fpdfsdk/javascript/JS_EventHandler.h"
11 #include "fpdfsdk/javascript/JS_Runtime.h" 10 #include "fpdfsdk/javascript/cjs_runtime.h"
12 #include "fpdfsdk/javascript/resource.h" 11 #include "fpdfsdk/javascript/resource.h"
13 12
14 /* -------------------------- CJS_Context -------------------------- */
15
16 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) 13 CJS_Context::CJS_Context(CJS_Runtime* pRuntime)
17 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { 14 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) {
18 m_pEventHandler = new CJS_EventHandler(this); 15 m_pEventHandler = new CJS_EventHandler(this);
19 } 16 }
20 17
21 CJS_Context::~CJS_Context() { 18 CJS_Context::~CJS_Context() {
22 delete m_pEventHandler; 19 delete m_pEventHandler;
23 } 20 }
24 21
25 CPDFSDK_Document* CJS_Context::GetReaderDocument() { 22 CPDFSDK_Document* CJS_Context::GetReaderDocument() {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 272 }
276 273
277 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { 274 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) {
278 m_pEventHandler->OnBatchExec(pTarget); 275 m_pEventHandler->OnBatchExec(pTarget);
279 } 276 }
280 277
281 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, 278 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget,
282 const CFX_WideString& strTargetName) { 279 const CFX_WideString& strTargetName) {
283 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); 280 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName);
284 } 281 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/cjs_context.h ('k') | fpdfsdk/javascript/cjs_runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698