| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 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 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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 "sky/engine/config.h" |
| 32 #include "bindings/core/v8/V8Binding.h" | 32 #include "sky/engine/bindings/core/v8/V8Binding.h" |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptController.h" | |
| 35 #include "bindings/core/v8/V8AbstractEventListener.h" | |
| 36 #include "bindings/core/v8/V8BindingMacros.h" | |
| 37 #include "bindings/core/v8/V8Element.h" | 34 #include "bindings/core/v8/V8Element.h" |
| 38 #include "bindings/core/v8/V8ObjectConstructor.h" | |
| 39 #include "bindings/core/v8/V8Window.h" | 35 #include "bindings/core/v8/V8Window.h" |
| 40 #include "bindings/core/v8/WindowProxy.h" | 36 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 41 #include "core/dom/Document.h" | 37 #include "sky/engine/bindings/core/v8/V8AbstractEventListener.h" |
| 42 #include "core/dom/Element.h" | 38 #include "sky/engine/bindings/core/v8/V8BindingMacros.h" |
| 43 #include "core/dom/QualifiedName.h" | 39 #include "sky/engine/bindings/core/v8/V8ObjectConstructor.h" |
| 44 #include "core/frame/LocalFrame.h" | 40 #include "sky/engine/bindings/core/v8/WindowProxy.h" |
| 45 #include "core/frame/Settings.h" | 41 #include "sky/engine/core/dom/Document.h" |
| 46 #include "core/inspector/BindingVisitors.h" | 42 #include "sky/engine/core/dom/Element.h" |
| 47 #include "core/inspector/InspectorTraceEvents.h" | 43 #include "sky/engine/core/dom/QualifiedName.h" |
| 48 #include "core/loader/FrameLoaderClient.h" | 44 #include "sky/engine/core/frame/LocalFrame.h" |
| 49 #include "platform/EventTracer.h" | 45 #include "sky/engine/core/frame/Settings.h" |
| 50 #include "platform/JSONValues.h" | 46 #include "sky/engine/core/inspector/BindingVisitors.h" |
| 51 #include "wtf/ArrayBufferContents.h" | 47 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 52 #include "wtf/MainThread.h" | 48 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 53 #include "wtf/MathExtras.h" | 49 #include "sky/engine/platform/EventTracer.h" |
| 54 #include "wtf/StdLibExtras.h" | 50 #include "sky/engine/platform/JSONValues.h" |
| 55 #include "wtf/Threading.h" | 51 #include "sky/engine/wtf/ArrayBufferContents.h" |
| 56 #include "wtf/text/AtomicString.h" | 52 #include "sky/engine/wtf/MainThread.h" |
| 57 #include "wtf/text/CString.h" | 53 #include "sky/engine/wtf/MathExtras.h" |
| 58 #include "wtf/text/StringBuffer.h" | 54 #include "sky/engine/wtf/StdLibExtras.h" |
| 59 #include "wtf/text/StringHash.h" | 55 #include "sky/engine/wtf/Threading.h" |
| 60 #include "wtf/text/WTFString.h" | 56 #include "sky/engine/wtf/text/AtomicString.h" |
| 61 #include "wtf/unicode/CharacterNames.h" | 57 #include "sky/engine/wtf/text/CString.h" |
| 62 #include "wtf/unicode/Unicode.h" | 58 #include "sky/engine/wtf/text/StringBuffer.h" |
| 59 #include "sky/engine/wtf/text/StringHash.h" |
| 60 #include "sky/engine/wtf/text/WTFString.h" |
| 61 #include "sky/engine/wtf/unicode/CharacterNames.h" |
| 62 #include "sky/engine/wtf/unicode/Unicode.h" |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 void setArityTypeError(ExceptionState& exceptionState, const char* valid, unsign
ed provided) | 66 void setArityTypeError(ExceptionState& exceptionState, const char* valid, unsign
ed provided) |
| 67 { | 67 { |
| 68 exceptionState.throwTypeError(ExceptionMessages::invalidArity(valid, provide
d)); | 68 exceptionState.throwTypeError(ExceptionMessages::invalidArity(valid, provide
d)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co
nst char* type, unsigned expected, unsigned provided, v8::Isolate* isolate) | 71 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co
nst char* type, unsigned expected, unsigned provided, v8::Isolate* isolate) |
| 72 { | 72 { |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) | 855 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) |
| 856 { | 856 { |
| 857 int scriptId = 0; | 857 int scriptId = 0; |
| 858 String resourceName; | 858 String resourceName; |
| 859 int lineNumber = 1; | 859 int lineNumber = 1; |
| 860 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); | 860 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); |
| 861 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); | 861 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); |
| 862 } | 862 } |
| 863 | 863 |
| 864 } // namespace blink | 864 } // namespace blink |
| OLD | NEW |