OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8
::AccessType type, v8::Local<v8::Value>) | 86 bool namedSecurityCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8
::AccessType type, v8::Local<v8::Value>) |
87 { | 87 { |
88 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(host); | 88 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(host); |
89 return BindingSecurity::shouldAllowAccessToFrame(imp->frame(), DoNotReportSe
curityError); | 89 return BindingSecurity::shouldAllowAccessToFrame(imp->frame(), DoNotReportSe
curityError); |
90 } | 90 } |
91 | 91 |
92 static void excitingFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 92 static void excitingFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) |
93 { | 93 { |
94 if (args.Length() < 1) { | 94 if (UNLIKELY(args.Length() < 1)) { |
95 throwNotEnoughArgumentsError(args.GetIsolate()); | 95 throwNotEnoughArgumentsError(args.GetIsolate()); |
96 return; | 96 return; |
97 } | 97 } |
98 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); | 98 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); |
99 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame())) | 99 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame())) |
100 return; | 100 return; |
101 V8TRYCATCH_VOID(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsola
te(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::C
ast(args[0])) : 0); | 101 V8TRYCATCH_VOID(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsola
te(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::C
ast(args[0])) : 0); |
102 imp->excitingFunction(nextChild); | 102 imp->excitingFunction(nextChild); |
103 | 103 |
104 return; | 104 return; |
105 } | 105 } |
106 | 106 |
107 static void excitingFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 107 static void excitingFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) |
108 { | 108 { |
109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
110 TestActiveDOMObjectV8Internal::excitingFunctionMethod(args); | 110 TestActiveDOMObjectV8Internal::excitingFunctionMethod(args); |
111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
112 } | 112 } |
113 | 113 |
114 static void postMessageMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 114 static void postMessageMethod(const v8::FunctionCallbackInfo<v8::Value>& args) |
115 { | 115 { |
116 if (args.Length() < 1) { | 116 if (UNLIKELY(args.Length() < 1)) { |
117 throwNotEnoughArgumentsError(args.GetIsolate()); | 117 throwNotEnoughArgumentsError(args.GetIsolate()); |
118 return; | 118 return; |
119 } | 119 } |
120 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); | 120 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); |
121 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, message, args[0]); | 121 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, message, args[0]); |
122 imp->postMessage(message); | 122 imp->postMessage(message); |
123 | 123 |
124 return; | 124 return; |
125 } | 125 } |
126 | 126 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); | 263 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); |
264 return wrapper; | 264 return wrapper; |
265 } | 265 } |
266 | 266 |
267 void V8TestActiveDOMObject::derefObject(void* object) | 267 void V8TestActiveDOMObject::derefObject(void* object) |
268 { | 268 { |
269 fromInternalPointer(object)->deref(); | 269 fromInternalPointer(object)->deref(); |
270 } | 270 } |
271 | 271 |
272 } // namespace WebCore | 272 } // namespace WebCore |
OLD | NEW |