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

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

Issue 1388023003: Merge to XFA: Make the vast majority of JS headers private to src/javascript. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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/javascript/JS_Context.h ('k') | fpdfsdk/src/javascript/JS_Define.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 "JS_Context.h"
8
7 #include "../../include/javascript/IJavaScript.h" 9 #include "../../include/javascript/IJavaScript.h"
8 #include "../../include/javascript/JS_Context.h" 10 #include "JS_EventHandler.h"
9 #include "../../include/javascript/JS_EventHandler.h" 11 #include "JS_Runtime.h"
10 #include "../../include/javascript/JS_Runtime.h" 12 #include "resource.h"
11 #include "../../include/javascript/resource.h"
12 13
13 /* -------------------------- CJS_Context -------------------------- */ 14 /* -------------------------- CJS_Context -------------------------- */
14 15
15 CJS_Context::CJS_Context(CJS_Runtime* pRuntime) 16 CJS_Context::CJS_Context(CJS_Runtime* pRuntime)
16 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) { 17 : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) {
17 m_pEventHandler = new CJS_EventHandler(this); 18 m_pEventHandler = new CJS_EventHandler(this);
18 } 19 }
19 20
20 CJS_Context::~CJS_Context() { 21 CJS_Context::~CJS_Context() {
21 delete m_pEventHandler; 22 delete m_pEventHandler;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 279 }
279 280
280 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) { 281 void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) {
281 m_pEventHandler->OnBatchExec(pTarget); 282 m_pEventHandler->OnBatchExec(pTarget);
282 } 283 }
283 284
284 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget, 285 void CJS_Context::OnMenu_Exec(CPDFSDK_Document* pTarget,
285 const CFX_WideString& strTargetName) { 286 const CFX_WideString& strTargetName) {
286 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName); 287 m_pEventHandler->OnMenu_Exec(pTarget, strTargetName);
287 } 288 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Context.h ('k') | fpdfsdk/src/javascript/JS_Define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698