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

Side by Side Diff: fpdfsdk/javascript/JS_Object.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_JS_OBJECT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ 8 #define FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "fpdfsdk/fsdk_define.h" 13 #include "fpdfsdk/fsdk_define.h"
14 #include "fpdfsdk/javascript/cjs_runtime.h" 14 #include "fpdfsdk/javascript/cjs_runtime.h"
15 #include "fxjs/fxjs_v8.h" 15 #include "fxjs/fxjs_v8.h"
16 16
17 class CJS_Context; 17 class CJS_Context;
18 class CJS_Object; 18 class CJS_Object;
19 class CPDFSDK_Environment; 19 class CPDFSDK_FormFillEnvironment;
20 20
21 class CJS_EmbedObj { 21 class CJS_EmbedObj {
22 public: 22 public:
23 explicit CJS_EmbedObj(CJS_Object* pJSObject); 23 explicit CJS_EmbedObj(CJS_Object* pJSObject);
24 virtual ~CJS_EmbedObj(); 24 virtual ~CJS_EmbedObj();
25 25
26 CJS_Object* GetJSObject() const { return m_pJSObject; } 26 CJS_Object* GetJSObject() const { return m_pJSObject; }
27 27
28 protected: 28 protected:
29 CJS_Object* const m_pJSObject; 29 CJS_Object* const m_pJSObject;
(...skipping 19 matching lines...) Expand all
49 v8::Isolate* GetIsolate() const { return m_pIsolate; } 49 v8::Isolate* GetIsolate() const { return m_pIsolate; }
50 50
51 protected: 51 protected:
52 std::unique_ptr<CJS_EmbedObj> m_pEmbedObj; 52 std::unique_ptr<CJS_EmbedObj> m_pEmbedObj;
53 v8::Global<v8::Object> m_pV8Object; 53 v8::Global<v8::Object> m_pV8Object;
54 v8::Isolate* m_pIsolate; 54 v8::Isolate* m_pIsolate;
55 }; 55 };
56 56
57 57
58 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_ 58 #endif // FPDFSDK_JAVASCRIPT_JS_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698