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

Side by Side Diff: xfa/fxjse/cfxjse_arguments.h

Issue 2045883004: Remove more FXJSE c-method wrappers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 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 | « xfa/fxfa/parser/xfa_script_imp.cpp ('k') | xfa/fxjse/class.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 XFA_FXJSE_CFXJSE_ARGUMENTS_H_ 7 #ifndef XFA_FXJSE_CFXJSE_ARGUMENTS_H_
8 #define XFA_FXJSE_CFXJSE_ARGUMENTS_H_ 8 #define XFA_FXJSE_CFXJSE_ARGUMENTS_H_
9 9
10 #include <memory>
11
10 #include "xfa/fxjse/include/fxjse.h" 12 #include "xfa/fxjse/include/fxjse.h"
11 13
14 class CFXJSE_Class;
15
12 class CFXJSE_Arguments { 16 class CFXJSE_Arguments {
13 public: 17 public:
14 CFXJSE_Arguments(const v8::FunctionCallbackInfo<v8::Value>* pInfo, 18 CFXJSE_Arguments(const v8::FunctionCallbackInfo<v8::Value>* pInfo,
15 CFXJSE_Value* pRetValue) 19 CFXJSE_Value* pRetValue)
16 : m_pInfo(pInfo), m_pRetValue(pRetValue) {} 20 : m_pInfo(pInfo), m_pRetValue(pRetValue) {}
17 21
18 v8::Isolate* GetRuntime() const; 22 v8::Isolate* GetRuntime() const;
19 int32_t GetLength() const; 23 int32_t GetLength() const;
20 std::unique_ptr<CFXJSE_Value> GetValue(int32_t index) const; 24 std::unique_ptr<CFXJSE_Value> GetValue(int32_t index) const;
21 FX_BOOL GetBoolean(int32_t index) const; 25 FX_BOOL GetBoolean(int32_t index) const;
22 int32_t GetInt32(int32_t index) const; 26 int32_t GetInt32(int32_t index) const;
23 FX_FLOAT GetFloat(int32_t index) const; 27 FX_FLOAT GetFloat(int32_t index) const;
24 CFX_ByteString GetUTF8String(int32_t index) const; 28 CFX_ByteString GetUTF8String(int32_t index) const;
25 void* GetObject(int32_t index, CFXJSE_Class* pClass = nullptr) const; 29 void* GetObject(int32_t index, CFXJSE_Class* pClass = nullptr) const;
26 CFXJSE_Value* GetReturnValue(); 30 CFXJSE_Value* GetReturnValue();
27 31
28 private: 32 private:
29 const v8::FunctionCallbackInfo<v8::Value>* m_pInfo; 33 const v8::FunctionCallbackInfo<v8::Value>* m_pInfo;
30 CFXJSE_Value* m_pRetValue; 34 CFXJSE_Value* m_pRetValue;
31 }; 35 };
32 36
33 #endif // XFA_FXJSE_CFXJSE_ARGUMENTS_H_ 37 #endif // XFA_FXJSE_CFXJSE_ARGUMENTS_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_imp.cpp ('k') | xfa/fxjse/class.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698