| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2007-2009 Google, Inc. All rights reserved. | 3 * Copyright (C) 2007-2009 Google, Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #define max max | 31 #define max max |
| 32 #define min min | 32 #define min min |
| 33 #include <v8.h> | 33 #include <v8.h> |
| 34 #include "NPV8Object.h" | 34 #include "NPV8Object.h" |
| 35 #include "ChromiumBridge.h" | 35 #include "ChromiumBridge.h" |
| 36 #include "Frame.h" | 36 #include "Frame.h" |
| 37 #include "bindings/npruntime.h" | 37 #include "bindings/npruntime.h" |
| 38 #include "npruntime_priv.h" | 38 #include "npruntime_priv.h" |
| 39 #include "PlatformString.h" | 39 #include "PlatformString.h" |
| 40 #include "ScriptController.h" | 40 #include "ScriptController.h" |
| 41 #include "v8_custom.h" | 41 #include "V8CustomBinding.h" |
| 42 #include "v8_helpers.h" | 42 #include "v8_helpers.h" |
| 43 #include "V8NPUtils.h" | 43 #include "V8NPUtils.h" |
| 44 #include "v8_proxy.h" | 44 #include "v8_proxy.h" |
| 45 #include "DOMWindow.h" | 45 #include "DOMWindow.h" |
| 46 | 46 |
| 47 using WebCore::V8ClassIndex; | 47 using WebCore::V8ClassIndex; |
| 48 using WebCore::V8Custom; | 48 using WebCore::V8Custom; |
| 49 using WebCore::V8Proxy; | 49 using WebCore::V8Proxy; |
| 50 | 50 |
| 51 // FIXME(mbelshe): comments on why use malloc and free. | 51 // FIXME(mbelshe): comments on why use malloc and free. |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 // Convert the result back to an NPVariant. | 516 // Convert the result back to an NPVariant. |
| 517 convertV8ObjectToNPVariant(resultObj, npobj, result); | 517 convertV8ObjectToNPVariant(resultObj, npobj, result); |
| 518 return true; | 518 return true; |
| 519 } | 519 } |
| 520 | 520 |
| 521 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npobj->_class) && npobj->_class->constr
uct) | 521 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npobj->_class) && npobj->_class->constr
uct) |
| 522 return npobj->_class->construct(npobj, args, argCount, result); | 522 return npobj->_class->construct(npobj, args, argCount, result); |
| 523 | 523 |
| 524 return false; | 524 return false; |
| 525 } | 525 } |
| OLD | NEW |