OLD | NEW |
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 #include "xfa/fxjse/class.h" | 7 #include "xfa/fxjse/class.h" |
8 | 8 |
| 9 #include "xfa/fxjse/cfxjse_arguments.h" |
9 #include "xfa/fxjse/context.h" | 10 #include "xfa/fxjse/context.h" |
10 #include "xfa/fxjse/scope_inline.h" | 11 #include "xfa/fxjse/scope_inline.h" |
11 #include "xfa/fxjse/util_inline.h" | 12 #include "xfa/fxjse/util_inline.h" |
12 #include "xfa/fxjse/value.h" | 13 #include "xfa/fxjse/value.h" |
13 | 14 |
14 static void FXJSE_V8ConstructorCallback_Wrapper( | 15 static void FXJSE_V8ConstructorCallback_Wrapper( |
15 const v8::FunctionCallbackInfo<v8::Value>& info); | 16 const v8::FunctionCallbackInfo<v8::Value>& info); |
16 static void FXJSE_V8FunctionCallback_Wrapper( | 17 static void FXJSE_V8FunctionCallback_Wrapper( |
17 const v8::FunctionCallbackInfo<v8::Value>& info); | 18 const v8::FunctionCallbackInfo<v8::Value>& info); |
18 static void FXJSE_V8GetterCallback_Wrapper( | 19 static void FXJSE_V8GetterCallback_Wrapper( |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 CFXJSE_Class* CFXJSE_Class::GetClassFromContext(CFXJSE_Context* pContext, | 340 CFXJSE_Class* CFXJSE_Class::GetClassFromContext(CFXJSE_Context* pContext, |
340 const CFX_ByteStringC& szName) { | 341 const CFX_ByteStringC& szName) { |
341 for (int count = pContext->m_rgClasses.GetSize(), i = 0; i < count; i++) { | 342 for (int count = pContext->m_rgClasses.GetSize(), i = 0; i < count; i++) { |
342 CFXJSE_Class* pClass = pContext->m_rgClasses[i]; | 343 CFXJSE_Class* pClass = pContext->m_rgClasses[i]; |
343 if (pClass->m_szClassName == szName) { | 344 if (pClass->m_szClassName == szName) { |
344 return pClass; | 345 return pClass; |
345 } | 346 } |
346 } | 347 } |
347 return NULL; | 348 return NULL; |
348 } | 349 } |
OLD | NEW |