| 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 20 matching lines...) Expand all Loading... |
| 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 "DOMWindow.h" | 35 #include "DOMWindow.h" |
| 36 #include "Frame.h" | 36 #include "Frame.h" |
| 37 #include "NPV8Object.h" // for PrivateIdentifier | 37 #include "NPV8Object.h" // for PrivateIdentifier |
| 38 #include "npruntime_impl.h" | 38 #include "npruntime_impl.h" |
| 39 #include "npruntime_priv.h" | 39 #include "npruntime_priv.h" |
| 40 #include "Range.h" | 40 #include "Range.h" |
| 41 #include "ScriptController.h" |
| 41 #include "V8ArrayBuffer.h" | 42 #include "V8ArrayBuffer.h" |
| 42 #include "V8ArrayBufferView.h" | 43 #include "V8ArrayBufferView.h" |
| 43 #include "V8DOMWrapper.h" | 44 #include "V8DOMWrapper.h" |
| 44 #include "V8Element.h" | 45 #include "V8Element.h" |
| 45 #include "V8NPUtils.h" | 46 #include "V8NPUtils.h" |
| 46 #include "V8Range.h" | 47 #include "V8Range.h" |
| 47 #include "WebArrayBuffer.h" | 48 #include "WebArrayBuffer.h" |
| 48 #include "WebArrayBufferView.h" | 49 #include "WebArrayBufferView.h" |
| 49 #include "WebElement.h" | 50 #include "WebElement.h" |
| 50 #include "WebRange.h" | 51 #include "WebRange.h" |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 return v8::Undefined(); | 350 return v8::Undefined(); |
| 350 V8NPObject* v8Object = reinterpret_cast<V8NPObject*>(object); | 351 V8NPObject* v8Object = reinterpret_cast<V8NPObject*>(object); |
| 351 return convertNPVariantToV8Object(variant, v8Object->rootObject->frame()
->script()->windowScriptNPObject(), isolate); | 352 return convertNPVariantToV8Object(variant, v8Object->rootObject->frame()
->script()->windowScriptNPObject(), isolate); |
| 352 } | 353 } |
| 353 // 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 |
| 354 // argument is a primitive v8 type. | 355 // argument is a primitive v8 type. |
| 355 return convertNPVariantToV8Object(variant, 0, isolate); | 356 return convertNPVariantToV8Object(variant, 0, isolate); |
| 356 } | 357 } |
| 357 | 358 |
| 358 } // namespace WebKit | 359 } // namespace WebKit |
| OLD | NEW |