OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebBindings.h" | 32 #include "WebBindings.h" |
33 | 33 |
34 #include "BindingState.h" | 34 #include "BindingState.h" |
35 #include "NPV8Object.h" // for PrivateIdentifier | 35 #include "NPV8Object.h" // for PrivateIdentifier |
36 #include "Range.h" | |
37 #include "ScriptController.h" | 36 #include "ScriptController.h" |
38 #include "V8ArrayBuffer.h" | 37 #include "V8ArrayBuffer.h" |
39 #include "V8ArrayBufferView.h" | 38 #include "V8ArrayBufferView.h" |
40 #include "V8DOMWrapper.h" | 39 #include "V8DOMWrapper.h" |
41 #include "V8Element.h" | 40 #include "V8Element.h" |
42 #include "V8NPUtils.h" | 41 #include "V8NPUtils.h" |
43 #include "V8Range.h" | 42 #include "V8Range.h" |
44 #include "WebArrayBuffer.h" | 43 #include "WebArrayBuffer.h" |
45 #include "WebArrayBufferView.h" | 44 #include "WebArrayBufferView.h" |
46 #include "WebElement.h" | 45 #include "WebElement.h" |
47 #include "WebRange.h" | 46 #include "WebRange.h" |
| 47 #include "core/dom/Range.h" |
48 #include "core/page/DOMWindow.h" | 48 #include "core/page/DOMWindow.h" |
49 #include "core/page/Frame.h" | 49 #include "core/page/Frame.h" |
50 #include "npruntime_impl.h" | 50 #include "npruntime_impl.h" |
51 #include "npruntime_priv.h" | 51 #include "npruntime_priv.h" |
52 #include <wtf/ArrayBufferView.h> | 52 #include <wtf/ArrayBufferView.h> |
53 | 53 |
54 using namespace WebCore; | 54 using namespace WebCore; |
55 | 55 |
56 namespace WebKit { | 56 namespace WebKit { |
57 | 57 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 return v8::Undefined(); | 350 return v8::Undefined(); |
351 V8NPObject* v8Object = reinterpret_cast<V8NPObject*>(object); | 351 V8NPObject* v8Object = reinterpret_cast<V8NPObject*>(object); |
352 return convertNPVariantToV8Object(variant, v8Object->rootObject->frame()
->script()->windowScriptNPObject(), isolate); | 352 return convertNPVariantToV8Object(variant, v8Object->rootObject->frame()
->script()->windowScriptNPObject(), isolate); |
353 } | 353 } |
354 // Safe to pass 0 since we have checked the script object class to make sure
the | 354 // Safe to pass 0 since we have checked the script object class to make sure
the |
355 // argument is a primitive v8 type. | 355 // argument is a primitive v8 type. |
356 return convertNPVariantToV8Object(variant, 0, isolate); | 356 return convertNPVariantToV8Object(variant, 0, isolate); |
357 } | 357 } |
358 | 358 |
359 } // namespace WebKit | 359 } // namespace WebKit |
OLD | NEW |