Changeset 111535 in webkit
- Timestamp:
- Mar 21, 2012 6:52:44 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r111533 r111535 1 2012-03-21 Vineet Chaudhary <rgf748@motorola.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=81761 4 Fix Gobject binding for sequence<T> for function return type. 5 6 Reviewed by Kentaro Hara. 7 8 No new tests. 9 10 * bindings/scripts/CodeGeneratorGObject.pm: 11 (SkipFunction): Skip function with sequence<T> return type. 12 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: 13 (webkit_dom_test_obj_method_with_sequence_arg): 14 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: 15 1 16 2012-03-21 Andrey Kosyakov <caseq@chromium.org> 2 17 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
r111416 r111535 193 193 194 194 my $functionName = "webkit_dom_" . $decamelize . "_" . $prefix . decamelize($function->signature->name); 195 my $functionReturnType = $prefix eq "set_" ? "void" : $function->signature->type; 195 196 my $isCustomFunction = $function->signature->extendedAttributes->{"Custom"}; 196 197 my $callWith = $function->signature->extendedAttributes->{"CallWith"}; … … 212 213 213 214 if ($function->signature->name eq "getCSSCanvasContext") { 215 return 1; 216 } 217 218 if ($codeGenerator->GetArrayType($functionReturnType)) { 214 219 return 1; 215 220 } -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
r111416 r111535 34 34 #include "bool.h" 35 35 #include "gobject/ConvertToUTF8String.h" 36 #include "sequence<ScriptProfile>.h"37 36 #include "webkit/WebKitDOMDictionary.h" 38 37 #include "webkit/WebKitDOMDictionaryPrivate.h" … … 60 59 #include "webkit/WebKitDOMePrivate.h" 61 60 #include "webkit/WebKitDOMsequence.h" 62 #include "webkit/WebKitDOMsequence<ScriptProfile>.h"63 #include "webkit/WebKitDOMsequence<ScriptProfile>Private.h"64 61 #include "webkit/WebKitDOMsequencePrivate.h" 65 62 #include "webkitdefines.h" … … 178 175 } 179 176 item->methodWithSequenceArg(converted_); 180 }181 182 WebKitDOMsequence<ScriptProfile>*183 webkit_dom_test_obj_method_returning_sequence(WebKitDOMTestObj* self, glong int_arg)184 {185 g_return_val_if_fail(self, 0);186 WebCore::JSMainThreadNullState state;187 WebCore::TestObj * item = WebKit::core(self);188 PassRefPtr<WebCore::sequence<ScriptProfile>> g_res = WTF::getPtr(item->methodReturningSequence(int_arg));189 WebKitDOMsequence<ScriptProfile>* res = WebKit::kit(g_res.get());190 return res;191 177 } 192 178 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
r111416 r111535 128 128 129 129 /** 130 * webkit_dom_test_obj_method_returning_sequence:131 * @self: A #WebKitDOMTestObj132 * @int_arg: A #glong133 *134 * Returns: (transfer none):135 *136 **/137 WEBKIT_API WebKitDOMsequence<ScriptProfile>*138 webkit_dom_test_obj_method_returning_sequence(WebKitDOMTestObj* self, glong int_arg);139 140 /**141 130 * webkit_dom_test_obj_method_that_requires_all_args_and_throws: 142 131 * @self: A #WebKitDOMTestObj
Note: See TracChangeset
for help on using the changeset viewer.