RESOLVED FIXED 23210
Make it easier for ports to define custom UI for media controls
https://bugs.webkit.org/show_bug.cgi?id=23210
Summary Make it easier for ports to define custom UI for media controls
Eric Carlson
Reported 2009-01-09 11:49:05 PST
It should be easier for ports to define their own media controls UI. Specifically we should not require the CSS to be in a single static variable, and we should assume that hit testing a control element's bounding box is sufficient.
Attachments
proposed patch (7.38 KB, patch)
2009-01-09 11:50 PST, Eric Carlson
eric: review+
Change media controls theming to be overrides instead of complete ruleset (15.10 KB, patch)
2009-01-13 05:35 PST, Tor Arne Vestbø
no flags
Updated patch with changelog and #ifdefs in RenderTheme (16.97 KB, patch)
2009-01-13 06:21 PST, Tor Arne Vestbø
hausmann: review+
Eric Carlson
Comment 1 2009-01-09 11:50:05 PST
Created attachment 26566 [details] proposed patch
Eric Carlson
Comment 2 2009-01-09 12:05:04 PST
err, I meant to say "we should NOT assume that hit testing a control element's bounding box is sufficient"
Eric Seidel (no email)
Comment 3 2009-01-09 13:13:05 PST
Comment on attachment 26566 [details] proposed patch I would expect this to be either: const String& or String. I'm not sure what const String would do for you. The preferred webkit style is no else after return: + if (renderer() && renderer()->style()->hasAppearance()) + return theme()->hitTestMediaControlPart(renderer(), absPoint); + else + return false; No need for "o" here: + virtual bool hitTestMediaControlPart(RenderObject* o, const IntPoint& absPoint); Otherwise it looks fine. If you're a commiter, go ahead and fix the nits and land, no need to see another patch.
Eric Carlson
Comment 4 2009-01-11 17:11:44 PST
Committed revision 39782
Tor Arne Vestbø
Comment 5 2009-01-13 05:35:35 PST
Created attachment 26665 [details] Change media controls theming to be overrides instead of complete ruleset
Tor Arne Vestbø
Comment 6 2009-01-13 05:35:48 PST
Re-opening as I have a patch to how this works. Talked to Eric about this on IRC.
Tor Arne Vestbø
Comment 7 2009-01-13 05:36:44 PST
Talked to Eric Carlson that is :)
Tor Arne Vestbø
Comment 8 2009-01-13 06:21:04 PST
Created attachment 26666 [details] Updated patch with changelog and #ifdefs in RenderTheme
Simon Hausmann
Comment 9 2009-01-13 06:31:38 PST
Comment on attachment 26666 [details] Updated patch with changelog and #ifdefs in RenderTheme Looks good to me!
Note You need to log in before you can comment on or make changes to this bug.