Changeset 185694 in webkit
- Timestamp:
- Jun 18, 2015, 12:02:58 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
-
ChangeLog (modified) (1 diff)
-
bindings/scripts/CodeGeneratorGObject.pm (modified) (1 diff)
-
bindings/scripts/CodeGeneratorObjC.pm (modified) (1 diff)
-
bindings/scripts/test/GObject/WebKitDOMTestObj.cpp (modified) (2 diffs)
-
bindings/scripts/test/GObject/WebKitDOMTestObj.h (modified) (1 diff)
-
bindings/scripts/test/ObjC/DOMTestObj.h (modified) (1 diff)
-
bindings/scripts/test/ObjC/DOMTestObj.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r185693 r185694 1 2015-06-18 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 3 GObject and ObjC bindings generator should not generate code for promise-based APIs 4 https://bugs.webkit.org/show_bug.cgi?id=146059 5 6 Reviewed by Darin Adler. 7 8 Covered by rebased expectations. 9 10 * bindings/scripts/CodeGeneratorGObject.pm: 11 (SkipFunction): Disabling GObject DOM binding for functions returning promises. 12 * bindings/scripts/CodeGeneratorObjC.pm: 13 (SkipFunction): Disabling ObjC DOM binding for functions returning promises. 14 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Rebasing expectation. 15 (webkit_dom_test_obj_get_read_only_long_attr): Deleted. 16 (webkit_dom_test_obj_get_read_only_string_attr): Deleted. 17 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Rebasing expectation. 18 * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto. 19 * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto. 20 (core): Deleted. 21 1 22 2015-06-17 Ryuan Choi <ryuan.choi@navercorp.com> 2 23 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
r181643 r185694 360 360 361 361 if ($function->signature->name eq "supports" && @{$function->parameters} == 1) { 362 return 1; 363 } 364 365 if ($function->signature->type eq "Promise") { 362 366 return 1; 363 367 } -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r184854 r185694 538 538 return 1 if $codeGenerator->GetArrayType($function->signature->type); 539 539 540 return 1 if $function->signature->type eq "Promise"; 541 540 542 foreach my $param (@{$function->parameters}) { 541 543 return 1 if $codeGenerator->GetSequenceType($param->type); -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
r185493 r185694 34 34 #include "WebKitDOMNodePrivate.h" 35 35 #include "WebKitDOMPrivate.h" 36 #include "WebKitDOMPromisePrivate.h"37 36 #include "WebKitDOMSVGPointPrivate.h" 38 37 #include "WebKitDOMTestEnumTypePrivate.h" … … 1553 1552 } 1554 1553 1555 WebKitDOMPromise* webkit_dom_test_obj_test_promise_function(WebKitDOMTestObj* self)1556 {1557 WebCore::JSMainThreadNullState state;1558 g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);1559 WebCore::TestObj* item = WebKit::core(self);1560 RefPtr<WebCore::Promise> gobjectResult = WTF::getPtr(item->testPromiseFunction());1561 return WebKit::kit(gobjectResult.get());1562 }1563 1564 1554 glong webkit_dom_test_obj_get_read_only_long_attr(WebKitDOMTestObj* self) 1565 1555 { -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
r185493 r185694 652 652 653 653 /** 654 * webkit_dom_test_obj_test_promise_function:655 * @self: A #WebKitDOMTestObj656 *657 * Returns: (transfer none): A #WebKitDOMPromise658 *659 * Stability: Unstable660 **/661 WEBKIT_API WebKitDOMPromise*662 webkit_dom_test_obj_test_promise_function(WebKitDOMTestObj* self);663 664 /**665 654 * webkit_dom_test_obj_get_read_only_long_attr: 666 655 * @self: A #WebKitDOMTestObj -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
r185493 r185694 174 174 - (void)variadicNodeMethod:(DOMNode *)head tail:(DOMNode *)tail; 175 175 - (void)any:(float)a b:(int)b; 176 - (DOMPromise *)testPromiseFunction;177 176 @end -
trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm
r185493 r185694 1184 1184 } 1185 1185 1186 - (DOMPromise *)testPromiseFunction1187 {1188 WebCore::JSMainThreadNullState state;1189 return kit(WTF::getPtr(IMPL->testPromiseFunction()));1190 }1191 1192 1186 @end 1193 1187
Note:
See TracChangeset
for help on using the changeset viewer.