Great, I've greated a bug and two code reviews:
http://code.google.com/p/chromium/issues/detail?id=251645
https://codereview.chromium.org/17391015
https://codereview.chromium.org/17448004
In the future, is it necessary to create a bug for each feature patch, or
is just a review OK?
Philip
On Tue, 18 Jun 2013 16:11:38 +0200, Anton Vayvod <
ava...@chromium.org>
wrote:
> I generally like the idea. It's kind of consistent with what desktop
> players do: when you click on the video, it pauses/resumes.
>
>
> On Tue, Jun 18, 2013 at 10:53 AM, Philip Jägenstedt
> <
phi...@opera.com>wrote:
>
>> In Opera for Android, we've added a feature to play/pause a video simply
>> by clicking it, the meat of the "feature" being:
>>
>> +void HTMLMediaElement::**defaultEventHandler(Event* event)
>> +{
>> + if (isVideo() && event->type() == eventNames().clickEvent &&
>> document()->page()
>> + && document()->page()->chrome()->**clickToPlayPauseVideo()) {
>> + if (paused())
>> + play();
>> + else
>> + pause();
>> + return;
>> + }
>> + HTMLElement::**defaultEventHandler(event);