RESOLVED FIXED Bug 72158
Mouse Lock: MouseEvent IDL
https://bugs.webkit.org/show_bug.cgi?id=72158
Summary Mouse Lock: MouseEvent IDL
Vincent Scheib
Reported 2011-11-11 11:17:44 PST
Mouse Lock: MouseEvent IDL
Attachments
Patch (6.79 KB, patch)
2011-11-11 11:22 PST, Vincent Scheib
no flags
Patch (5.94 KB, patch)
2011-11-11 14:26 PST, Vincent Scheib
no flags
Patch (3.15 KB, patch)
2011-11-13 09:58 PST, Vincent Scheib
no flags
Vincent Scheib
Comment 1 2011-11-11 11:22:10 PST
Dimitri Glazkov (Google)
Comment 3 2011-11-11 14:07:18 PST
Comment on attachment 114740 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=114740&action=review please fix the bug title before landing. > Source/WebCore/ChangeLog:3 > + Mouse Lock: MouseEvent IDL This is not IDL, right?
Vincent Scheib
Comment 4 2011-11-11 14:11:04 PST
Comment on attachment 114740 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=114740&action=review >> Source/WebCore/ChangeLog:3 >> + Mouse Lock: MouseEvent IDL > > This is not IDL, right? The intent of the patch is to stub in the minimal C++ to support the IDL change also in this patch: Source/WebCore/dom/MouseEvent.idl. Still think I should rename?
Dimitri Glazkov (Google)
Comment 5 2011-11-11 14:12:19 PST
(In reply to comment #4) > (From update of attachment 114740 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=114740&action=review > > >> Source/WebCore/ChangeLog:3 > >> + Mouse Lock: MouseEvent IDL > > > > This is not IDL, right? > > The intent of the patch is to stub in the minimal C++ to support the IDL change also in this patch: Source/WebCore/dom/MouseEvent.idl. > > Still think I should rename? Doh. Sorry, I misread.
Alexey Proskuryakov
Comment 6 2011-11-11 14:13:40 PST
Why do you keep posting patches for Mouse Lock? You did not get support for adding Mouse Lock it its current form on webkit-dev or elsewhere, as far as I can tell. The IDL changes in particular are wrong. One cannot add optional arguments in the middle of a function prototype without breaking existing callers.
Dimitri Glazkov (Google)
Comment 7 2011-11-11 14:16:48 PST
Comment on attachment 114740 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=114740&action=review > Source/WebCore/dom/MouseEvent.idl:51 > +#if defined(ENABLE_MOUSE_LOCK_API) && ENABLE_MOUSE_LOCK_API > + in [Optional=CallWithDefaultValue] long movementX, > + in [Optional=CallWithDefaultValue] long movementY, > +#endif Alexey is right -- this is wrong. Can we remove this for now?
Vincent Scheib
Comment 8 2011-11-11 14:26:27 PST
Vincent Scheib
Comment 9 2011-11-11 14:30:10 PST
Vincent Scheib
Comment 10 2011-11-11 14:37:21 PST
Reverted r100024 for reason: Broke chromium build Committed r100027: <http://trac.webkit.org/changeset/100027>
Vincent Scheib
Comment 11 2011-11-13 09:58:47 PST
Vincent Scheib
Comment 12 2011-11-13 13:05:46 PST
Adam Barth
Comment 13 2011-11-13 22:54:36 PST
Comment on attachment 114859 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=114859&action=review > Source/WebCore/ChangeLog:8 > + Tests for movementX/Y pending mock mouse lock test infrastructure. Frowns. > Source/WebCore/dom/MouseEvent.idl:31 > +#if defined(ENABLE_MOUSE_LOCK_API) && ENABLE_MOUSE_LOCK_API > + readonly attribute long movementX; > + readonly attribute long movementY; > +#endif Can we use [Conditional=MOUSE_LOCK_API] ? Also, why ENABLE(MOUSE_LOCK_API) and not just ENABLE(MOUSE_LOCK) ? Almost everything in ENABLE is an API. :)
Vincent Scheib
Comment 14 2011-11-14 09:53:00 PST
(In reply to comment #13) > (From update of attachment 114859 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=114859&action=review > > > Source/WebCore/ChangeLog:8 > > + Tests for movementX/Y pending mock mouse lock test infrastructure. > > Frowns. > > > Source/WebCore/dom/MouseEvent.idl:31 > > +#if defined(ENABLE_MOUSE_LOCK_API) && ENABLE_MOUSE_LOCK_API > > + readonly attribute long movementX; > > + readonly attribute long movementY; > > +#endif > > Can we use [Conditional=MOUSE_LOCK_API] ? > > Also, why ENABLE(MOUSE_LOCK_API) and not just ENABLE(MOUSE_LOCK) ? Almost everything in ENABLE is an API. :) Sure, will follow up with a polish patch.
Adam Barth
Comment 15 2011-11-14 10:09:20 PST
> Sure, will follow up with a polish patch. Thanks!
Note You need to log in before you can comment on or make changes to this bug.