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

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

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 years, 1 month 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.cpp ('k') | fpdfsdk/javascript/cjs_runtime.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 #ifndef FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_
8 #define FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_ 8 #define FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 29 matching lines...) Expand all
40 40
41 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const override; 41 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const override;
42 42
43 int ExecuteScript(const CFX_WideString& script, 43 int ExecuteScript(const CFX_WideString& script,
44 CFX_WideString* info) override; 44 CFX_WideString* info) override;
45 45
46 // Returns true if the event isn't already found in the set. 46 // Returns true if the event isn't already found in the set.
47 bool AddEventToSet(const FieldEvent& event); 47 bool AddEventToSet(const FieldEvent& event);
48 void RemoveEventFromSet(const FieldEvent& event); 48 void RemoveEventFromSet(const FieldEvent& event);
49 49
50 void BeginBlock() { m_bBlocking = TRUE; } 50 void BeginBlock() { m_bBlocking = true; }
51 void EndBlock() { m_bBlocking = FALSE; } 51 void EndBlock() { m_bBlocking = false; }
52 FX_BOOL IsBlocking() const { return m_bBlocking; } 52 bool IsBlocking() const { return m_bBlocking; }
53 53
54 #ifdef PDF_ENABLE_XFA 54 #ifdef PDF_ENABLE_XFA
55 FX_BOOL GetValueByName(const CFX_ByteStringC& utf8Name, 55 bool GetValueByName(const CFX_ByteStringC& utf8Name,
56 CFXJSE_Value* pValue) override; 56 CFXJSE_Value* pValue) override;
57 FX_BOOL SetValueByName(const CFX_ByteStringC& utf8Name, 57 bool SetValueByName(const CFX_ByteStringC& utf8Name,
58 CFXJSE_Value* pValue) override; 58 CFXJSE_Value* pValue) override;
59 #endif // PDF_ENABLE_XFA 59 #endif // PDF_ENABLE_XFA
60 60
61 private: 61 private:
62 void DefineJSObjects(); 62 void DefineJSObjects();
63 void SetFormFillEnvToDocument(); 63 void SetFormFillEnvToDocument();
64 64
65 std::vector<std::unique_ptr<CJS_Context>> m_ContextArray; 65 std::vector<std::unique_ptr<CJS_Context>> m_ContextArray;
66 CPDFSDK_FormFillEnvironment* const m_pFormFillEnv; 66 CPDFSDK_FormFillEnvironment* const m_pFormFillEnv;
67 bool m_bBlocking; 67 bool m_bBlocking;
68 bool m_isolateManaged; 68 bool m_isolateManaged;
69 std::set<FieldEvent> m_FieldEventSet; 69 std::set<FieldEvent> m_FieldEventSet;
70 }; 70 };
71 71
72 #endif // FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_ 72 #endif // FPDFSDK_JAVASCRIPT_CJS_RUNTIME_H_
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/cjs_context.cpp ('k') | fpdfsdk/javascript/cjs_runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698