OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 24 matching lines...) Expand all Loading... |
35 #include "bindings/core/v8/DOMDataStore.h" | 35 #include "bindings/core/v8/DOMDataStore.h" |
36 #include "bindings/core/v8/ScriptController.h" | 36 #include "bindings/core/v8/ScriptController.h" |
37 #include "bindings/core/v8/V8Binding.h" | 37 #include "bindings/core/v8/V8Binding.h" |
38 #include "bindings/core/v8/V8Element.h" | 38 #include "bindings/core/v8/V8Element.h" |
39 #include "bindings/core/v8/V8HiddenValue.h" | 39 #include "bindings/core/v8/V8HiddenValue.h" |
40 #include "bindings/core/v8/V8PerContextData.h" | 40 #include "bindings/core/v8/V8PerContextData.h" |
41 #include "core/dom/ExecutionContext.h" | 41 #include "core/dom/ExecutionContext.h" |
42 #include "core/inspector/InspectorInstrumentation.h" | 42 #include "core/inspector/InspectorInstrumentation.h" |
43 #include "wtf/PassOwnPtr.h" | 43 #include "wtf/PassOwnPtr.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace blink { |
46 | 46 |
47 #define CALLBACK_LIST(V) \ | 47 #define CALLBACK_LIST(V) \ |
48 V(created, Created) \ | 48 V(created, Created) \ |
49 V(attached, Attached) \ | 49 V(attached, Attached) \ |
50 V(detached, Detached) \ | 50 V(detached, Detached) \ |
51 V(attributeChanged, AttributeChanged) | 51 V(attributeChanged, AttributeChanged) |
52 | 52 |
53 PassRefPtr<V8CustomElementLifecycleCallbacks> V8CustomElementLifecycleCallbacks:
:create(ScriptState* scriptState, v8::Handle<v8::Object> prototype, v8::Handle<v
8::Function> created, v8::Handle<v8::Function> attached, v8::Handle<v8::Function
> detached, v8::Handle<v8::Function> attributeChanged) | 53 PassRefPtr<V8CustomElementLifecycleCallbacks> V8CustomElementLifecycleCallbacks:
:create(ScriptState* scriptState, v8::Handle<v8::Object> prototype, v8::Handle<v
8::Function> created, v8::Handle<v8::Function> attached, v8::Handle<v8::Function
> detached, v8::Handle<v8::Function> attributeChanged) |
54 { | 54 { |
55 v8::Isolate* isolate = scriptState->isolate(); | 55 v8::Isolate* isolate = scriptState->isolate(); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 v8::Handle<v8::Object> receiver = toV8(element, context->Global(), isolate).
As<v8::Object>(); | 253 v8::Handle<v8::Object> receiver = toV8(element, context->Global(), isolate).
As<v8::Object>(); |
254 ASSERT(!receiver.IsEmpty()); | 254 ASSERT(!receiver.IsEmpty()); |
255 | 255 |
256 InspectorInstrumentation::willExecuteCustomElementCallback(element); | 256 InspectorInstrumentation::willExecuteCustomElementCallback(element); |
257 | 257 |
258 v8::TryCatch exceptionCatcher; | 258 v8::TryCatch exceptionCatcher; |
259 exceptionCatcher.SetVerbose(true); | 259 exceptionCatcher.SetVerbose(true); |
260 ScriptController::callFunction(executionContext(), callback, receiver, 0, 0,
isolate); | 260 ScriptController::callFunction(executionContext(), callback, receiver, 0, 0,
isolate); |
261 } | 261 } |
262 | 262 |
263 } // namespace WebCore | 263 } // namespace blink |
OLD | NEW |