[Webkit-unassigned] [Bug 72010] Add new API for Vibration API spec.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 10 09:14:02 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=72010
Adam Barth <abarth at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #114467|review?, commit-queue? |review-
Flag| |
--- Comment #5 from Adam Barth <abarth at webkit.org> 2011-11-10 09:14:02 PST ---
(From update of attachment 114467)
View in context: https://bugs.webkit.org/attachment.cgi?id=114467&action=review
This patch is missing tests. At this point, we just need basic tests for showing that the API exists and you can call it (not necessarily that it does anything).
> Source/WebCore/bindings/js/JSNavigatorCustom.cpp:66
> +JSValue JSNavigator::webkitVibrate(ExecState* exec)
This shouldn't need custom bindings.
> Source/WebCore/page/Navigator.h:29
> +typedef Vector<long, 1> VibrationArray;
Why have an inline capacity of 1?
> Source/WebCore/page/Navigator.idl:64
> +#if defined(ENABLE_VIBRATION) && ENABLE_VIBRATION
> + [Custom] void webkitVibrate(in [Optional=CallWithDefaultValue] Array pattern)
> + raises(DOMException);
> +#endif
This API shouldn't be custom.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list