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, 2008, 2009 Google, Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 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 |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
| 28 #include "bindings/core/v8/NPV8Object.h" |
28 | 29 |
29 #include "bindings/v8/NPV8Object.h" | 30 #include "bindings/core/v8/ScriptController.h" |
30 | 31 #include "bindings/core/v8/ScriptSourceCode.h" |
31 #include "bindings/v8/ScriptController.h" | 32 #include "bindings/core/v8/V8Binding.h" |
32 #include "bindings/v8/ScriptSourceCode.h" | 33 #include "bindings/core/v8/V8GCController.h" |
33 #include "bindings/v8/V8Binding.h" | 34 #include "bindings/core/v8/V8NPUtils.h" |
34 #include "bindings/v8/V8GCController.h" | 35 #include "bindings/core/v8/V8ObjectConstructor.h" |
35 #include "bindings/v8/V8NPUtils.h" | 36 #include "bindings/core/v8/V8ScriptRunner.h" |
36 #include "bindings/v8/V8ObjectConstructor.h" | 37 #include "bindings/core/v8/WrapperTypeInfo.h" |
37 #include "bindings/v8/V8ScriptRunner.h" | 38 #include "bindings/core/v8/npruntime_impl.h" |
38 #include "bindings/v8/WrapperTypeInfo.h" | 39 #include "bindings/core/v8/npruntime_priv.h" |
39 #include "bindings/v8/npruntime_impl.h" | |
40 #include "bindings/v8/npruntime_priv.h" | |
41 #include "core/frame/LocalDOMWindow.h" | 40 #include "core/frame/LocalDOMWindow.h" |
42 #include "core/frame/LocalFrame.h" | 41 #include "core/frame/LocalFrame.h" |
43 #include "platform/UserGestureIndicator.h" | 42 #include "platform/UserGestureIndicator.h" |
44 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
45 | |
46 #include <stdio.h> | |
47 #include "wtf/StringExtras.h" | 44 #include "wtf/StringExtras.h" |
48 #include "wtf/text/WTFString.h" | 45 #include "wtf/text/WTFString.h" |
| 46 #include <stdio.h> |
49 | 47 |
50 using namespace WebCore; | 48 using namespace WebCore; |
51 | 49 |
52 namespace WebCore { | 50 namespace WebCore { |
53 | 51 |
54 const WrapperTypeInfo* npObjectTypeInfo() | 52 const WrapperTypeInfo* npObjectTypeInfo() |
55 { | 53 { |
56 static const WrapperTypeInfo typeInfo = { gin::kEmbedderBlink, 0, 0, 0, 0, 0
, 0, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 54 static const WrapperTypeInfo typeInfo = { gin::kEmbedderBlink, 0, 0, 0, 0, 0
, 0, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
57 return &typeInfo; | 55 return &typeInfo; |
58 } | 56 } |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 594 |
597 convertV8ObjectToNPVariant(resultObject, npObject, result, isolate); | 595 convertV8ObjectToNPVariant(resultObject, npObject, result, isolate); |
598 return true; | 596 return true; |
599 } | 597 } |
600 | 598 |
601 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class->
construct) | 599 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class->
construct) |
602 return npObject->_class->construct(npObject, arguments, argumentCount, r
esult); | 600 return npObject->_class->construct(npObject, arguments, argumentCount, r
esult); |
603 | 601 |
604 return false; | 602 return false; |
605 } | 603 } |
OLD | NEW |