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

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

Issue 2391313002: Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment (Closed)
Patch Set: Rebase to master Created 4 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
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 #ifndef FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 8 #define FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxcrt/fx_string.h" 12 #include "core/fxcrt/fx_string.h"
13 #include "core/fxcrt/fx_system.h" 13 #include "core/fxcrt/fx_system.h"
14 #include "fpdfsdk/javascript/ijs_context.h" 14 #include "fpdfsdk/javascript/ijs_context.h"
15 15
16 class CJS_EventHandler; 16 class CJS_EventHandler;
17 class CJS_Runtime; 17 class CJS_Runtime;
18 class CPDFSDK_Environment; 18 class CPDFSDK_FormFillEnvironment;
19 19
20 class CJS_Context : public IJS_Context { 20 class CJS_Context : public IJS_Context {
21 public: 21 public:
22 explicit CJS_Context(CJS_Runtime* pRuntime); 22 explicit CJS_Context(CJS_Runtime* pRuntime);
23 ~CJS_Context() override; 23 ~CJS_Context() override;
24 24
25 // IJS_Context 25 // IJS_Context
26 FX_BOOL RunScript(const CFX_WideString& script, 26 FX_BOOL RunScript(const CFX_WideString& script,
27 CFX_WideString* info) override; 27 CFX_WideString* info) override;
28 void OnApp_Init() override; 28 void OnApp_Init() override;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; 118 void OnLink_MouseUp(CPDFSDK_Document* pTarget) override;
119 void OnMenu_Exec(CPDFSDK_Document* pTarget, 119 void OnMenu_Exec(CPDFSDK_Document* pTarget,
120 const CFX_WideString& strTargetName) override; 120 const CFX_WideString& strTargetName) override;
121 void OnBatchExec(CPDFSDK_Document* pTarget) override; 121 void OnBatchExec(CPDFSDK_Document* pTarget) override;
122 void OnConsole_Exec() override; 122 void OnConsole_Exec() override;
123 void OnExternal_Exec() override; 123 void OnExternal_Exec() override;
124 124
125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } 125 CJS_Runtime* GetJSRuntime() const { return m_pRuntime; }
126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); } 126 CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); }
127 127
128 CPDFSDK_Environment* GetReaderEnv(); 128 CPDFSDK_FormFillEnvironment* GetReaderEnv();
129 CPDFSDK_Document* GetReaderDocument(); 129 CPDFSDK_Document* GetReaderDocument();
130 130
131 private: 131 private:
132 CJS_Runtime* const m_pRuntime; 132 CJS_Runtime* const m_pRuntime;
133 std::unique_ptr<CJS_EventHandler> m_pEventHandler; 133 std::unique_ptr<CJS_EventHandler> m_pEventHandler;
134 FX_BOOL m_bBusy; 134 FX_BOOL m_bBusy;
135 }; 135 };
136 136
137 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_ 137 #endif // FPDFSDK_JAVASCRIPT_CJS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698