RESOLVED FIXED 104443
[BlackBerry] Update Media Controls for BlackBerry Platform
https://bugs.webkit.org/show_bug.cgi?id=104443
Summary [BlackBerry] Update Media Controls for BlackBerry Platform
John Griggs
Reported 2012-12-08 09:19:53 PST
Update the media controls on the BlackBerry platform to allow separate styling of audio, embedded video and full screen video elements.
Attachments
Patch (110.91 KB, patch)
2012-12-11 10:48 PST, John Griggs
no flags
Patch (109.62 KB, patch)
2012-12-11 12:56 PST, John Griggs
no flags
Patch (107.84 KB, patch)
2012-12-11 13:50 PST, John Griggs
no flags
Patch (107.84 KB, patch)
2012-12-12 07:55 PST, John Griggs
no flags
Patch (98.51 KB, patch)
2012-12-12 09:02 PST, John Griggs
no flags
Patch (96.83 KB, patch)
2012-12-12 12:58 PST, John Griggs
no flags
Patch (110.98 KB, patch)
2012-12-12 13:40 PST, John Griggs
no flags
Patch (105.62 KB, patch)
2012-12-12 13:54 PST, John Griggs
no flags
John Griggs
Comment 1 2012-12-11 10:48:32 PST
John Griggs
Comment 2 2012-12-11 12:56:29 PST
John Griggs
Comment 3 2012-12-11 12:57:16 PST
Comment on attachment 178856 [details] Patch Updated patch.
Rob Buis
Comment 4 2012-12-11 13:28:36 PST
Comment on attachment 178856 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178856&action=review Needs some more iterations. > Source/WebCore/ChangeLog:8 > + Reviewed by NOBODY (OOPS!). Any PR to mention? > Source/WebCore/ChangeLog:203 > + (WebCore::RenderThemeBlackBerry::supportsDataListUI): Need to regenerate your ChangeLog :) > Source/WebCore/PlatformBlackBerry.cmake:8 > +) Why remove this? What is the backstory? > Source/WebCore/html/shadow/MediaControlElementTypes.cpp:77 > +#if !PLATFORM(BLACKBERRY) Is there a cleaner way? Do we want VIDEO_TRACK in the first place? If yes then why not this part? > Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp:420 > + } This is not relevant to your change, please remove. > Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp:456 > + return false; Ditto.
John Griggs
Comment 5 2012-12-11 13:47:11 PST
Comment on attachment 178856 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178856&action=review >> Source/WebCore/PlatformBlackBerry.cmake:8 >> +) > > Why remove this? What is the backstory? These are the media controls for Apple platforms - they are replaced by our controls in MediaControlsBlackBerry.cpp. Both of these files extend the code in MediaControls.cpp >> Source/WebCore/html/shadow/MediaControlElementTypes.cpp:77 >> +#if !PLATFORM(BLACKBERRY) > > Is there a cleaner way? Do we want VIDEO_TRACK in the first place? If yes then why not this part? The VIDEO_TRACK feature is apparently required (according to Eli), but the new Media Control changes from WebKit seem to depend on some rendering code for VIDEO_TRACK that we do not have yet. I cannot turn off VIDEO_TRACK entirely, so this is the easiest way to avoid chasing the rendering changes and get these media control changes in.
John Griggs
Comment 6 2012-12-11 13:50:23 PST
John Griggs
Comment 7 2012-12-11 13:51:32 PST
Comment on attachment 178866 [details] Patch Fixes items from review except for those explained in my previous comment.
Rob Buis
Comment 8 2012-12-11 14:12:21 PST
Comment on attachment 178866 [details] Patch LGTM.
WebKit Review Bot
Comment 9 2012-12-11 14:16:49 PST
Comment on attachment 178866 [details] Patch Rejecting attachment 178866 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: -1 lines). Hunk #15 succeeded at 1061 (offset -1 lines). Hunk #16 succeeded at 1100 (offset -1 lines). Hunk #17 succeeded at 1134 (offset -1 lines). 1 out of 17 hunks FAILED -- saving rejects to file Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp.rej patching file Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Rob Buis']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output: http://queues.webkit.org/results/15277298
John Griggs
Comment 10 2012-12-12 07:55:03 PST
John Griggs
Comment 11 2012-12-12 07:55:40 PST
Comment on attachment 179044 [details] Patch Updated to fix a one line error that was preventing the patch from applying cleanly.
Rob Buis
Comment 12 2012-12-12 07:56:59 PST
Comment on attachment 179044 [details] Patch Retrying.
WebKit Review Bot
Comment 13 2012-12-12 07:59:32 PST
Comment on attachment 179044 [details] Patch Rejecting attachment 179044 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: -1 lines). Hunk #15 succeeded at 1061 (offset -1 lines). Hunk #16 succeeded at 1100 (offset -1 lines). Hunk #17 succeeded at 1134 (offset -1 lines). 1 out of 17 hunks FAILED -- saving rejects to file Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp.rej patching file Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Rob Buis']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output: http://queues.webkit.org/results/15281533
John Griggs
Comment 14 2012-12-12 09:02:09 PST
John Griggs
Comment 15 2012-12-12 09:04:21 PST
Comment on attachment 179061 [details] Patch Another patch to attempt to get past the errors applying the patch. It looks like there were two conflicts - one in RenderThemeBlackBerry.cpp and one in Source/WebCore/ChangeLog. both are addressed in this patch.
Rob Buis
Comment 16 2012-12-12 09:34:49 PST
Comment on attachment 179061 [details] Patch LGTM.
Eric Carlson
Comment 17 2012-12-12 09:55:45 PST
Comment on attachment 179061 [details] Patch Silvia just refactored media control code to get rid of as many "#if PLATFORM()" in shared code as possible. I would *really* rather not have a bunch of "#if PLATFORM(BLACKBERRY)" in MediaControlElements.cpp, can you do this another way (eg. subclass the controls you want to change)?
Antonio Gomes
Comment 18 2012-12-12 10:44:37 PST
Comment on attachment 179061 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=179061&action=review Agree with Eric. > Source/WebCore/html/shadow/MediaControlElements.cpp:440 > +#if PLATFORM(BLACKBERRY) > + if (event->type() == eventNames().mousedownEvent) { > + // We do not mute when the media player volume/mute control is touched > + // on Playbook. Instead we show/hide the volume slider. > + m_controls->toggleVolumeSlider(); > + event->setDefaultHandled(); > + return; > + } > +#endif this can be a setting at least, and have its own bug.
John Griggs
Comment 19 2012-12-12 12:58:33 PST
John Griggs
Comment 20 2012-12-12 12:59:28 PST
Comment on attachment 179108 [details] Patch Latest patch removes #if PLATFORM(BLACKBERRY) from shared code.
John Griggs
Comment 21 2012-12-12 13:40:26 PST
John Griggs
Comment 22 2012-12-12 13:42:18 PST
Comment on attachment 179119 [details] Patch Updated patch removes #if PLATFORM(BLACKBERRY) blocks from common code.
Rob Buis
Comment 23 2012-12-12 13:43:50 PST
Comment on attachment 179119 [details] Patch LGTM.
Antonio Gomes
Comment 24 2012-12-12 13:46:32 PST
Comment on attachment 179119 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=179119&action=review Maybe this patch should be split into smaller ones? > Source/WebCore/ChangeLog:13 > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). > + > + No new tests (OOPS!). these should not be here
John Griggs
Comment 25 2012-12-12 13:52:48 PST
(In reply to comment #24) > (From update of attachment 179119 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=179119&action=review > > Maybe this patch should be split into smaller ones? > > > Source/WebCore/ChangeLog:13 > > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). > > + > > + No new tests (OOPS!). > > these should not be here Antonio, I am SOOO close and under some time pressure. I would really appreciate not having to break this patch up. I have fixed the ChangeLog issues (which I thought I had already squashed) in a new patch - uploading now.
John Griggs
Comment 26 2012-12-12 13:54:34 PST
John Griggs
Comment 27 2012-12-12 13:55:02 PST
Comment on attachment 179121 [details] Patch Fixed ChangeLog issues
Rob Buis
Comment 28 2012-12-12 13:58:42 PST
Comment on attachment 179121 [details] Patch Retrying.
WebKit Review Bot
Comment 29 2012-12-12 14:19:32 PST
Comment on attachment 179121 [details] Patch Clearing flags on attachment: 179121 Committed r137514: <http://trac.webkit.org/changeset/137514>
WebKit Review Bot
Comment 30 2012-12-12 14:19:39 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.