OLD | NEW |
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 "xfa/fxjse/include/fxjse.h" | 10 #include "xfa/fxjse/include/fxjse.h" |
11 | 11 |
12 class CFXJSE_Arguments { | 12 class CFXJSE_Arguments { |
13 public: | 13 public: |
14 v8::Isolate* GetRuntime() const; | 14 v8::Isolate* GetRuntime() const; |
15 int32_t GetLength() const; | 15 int32_t GetLength() const; |
16 FXJSE_HVALUE GetValue(int32_t index) const; | 16 FXJSE_HVALUE GetValue(int32_t index) const; |
17 FX_BOOL GetBoolean(int32_t index) const; | 17 FX_BOOL GetBoolean(int32_t index) const; |
18 int32_t GetInt32(int32_t index) const; | 18 int32_t GetInt32(int32_t index) const; |
19 FX_FLOAT GetFloat(int32_t index) const; | 19 FX_FLOAT GetFloat(int32_t index) const; |
20 CFX_ByteString GetUTF8String(int32_t index) const; | 20 CFX_ByteString GetUTF8String(int32_t index) const; |
21 void* GetObject(int32_t index) const; | 21 void* GetObject(int32_t index, FXJSE_HCLASS hClass = nullptr) const; |
22 FXJSE_HVALUE GetReturnValue(); | 22 FXJSE_HVALUE GetReturnValue(); |
23 }; | 23 }; |
24 | 24 |
25 #endif // XFA_FXJSE_CFXJSE_ARGUMENTS_H_ | 25 #endif // XFA_FXJSE_CFXJSE_ARGUMENTS_H_ |
OLD | NEW |