Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Issue 290883002: Clear hover flag after switching full-screen and inline video. (Closed)

Created:
6 years, 7 months ago by eric_li
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium, hengyang.zhao_intel.com, yongnian.le
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Clear hover flag after switching full-screen and inline video. BUG=374716 Media Controls does not fade out after switching between full-screen and inline video mode, because MediaControls is recorded as hovered after switching. But actually, after switching between full-screen and inline mode, Media Controls would move to another position and not hovered by mouse or touch focus. Clear the hover flag after switching between full-screen and inline mode would help MediaControls to fade out after 3 seconds without mouse movement. Thus reduce 200mW power consumption during video playback. (Measured on Intel tablet platform)

Patch Set 1 #

Patch Set 2 : Refresh hover flag after switching full-screen and inline video #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M Source/core/html/HTMLMediaElement.cpp View 1 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
eric_li
Dear acolwel and dominicc: Could you help take some time to review this patch? This ...
6 years, 7 months ago (2014-05-22 05:19:03 UTC) #1
philipj_slow
The only other code to call setUserActionElement is core/dom/UserActionElementSet.cpp, which makes me think it probably ...
6 years, 7 months ago (2014-05-22 08:58:23 UTC) #2
philipj_slow
6 years, 7 months ago (2014-05-22 08:58:55 UTC) #3
eric_li
On 2014/05/22 08:58:23, philipj wrote: > The only other code to call setUserActionElement is > ...
6 years, 7 months ago (2014-05-23 02:05:40 UTC) #4
philipj_slow
OK, so I tested in Chrome Canary and the behavior is indeed already what I ...
6 years, 7 months ago (2014-05-23 11:24:43 UTC) #5
eric_li
From my perspective, I think we should not send mouse move event when entering/exiting fullscreen ...
6 years, 7 months ago (2014-05-27 03:15:04 UTC) #6
philipj_slow
The mouse has moved relative to the document, though. Synthesizing a mouse move event may ...
6 years, 7 months ago (2014-05-27 08:58:31 UTC) #7
dominicc (has gone to gerrit)
-dominicc, +dglazkov He has perfect knowledge of Shadow DOM and media controls.
6 years, 6 months ago (2014-06-03 01:35:38 UTC) #8
dglazkov
On 2014/06/03 01:35:38, dominicc wrote: > -dominicc, +dglazkov > > He has perfect knowledge of ...
6 years, 6 months ago (2014-06-03 14:37:46 UTC) #9
philipj_slow
As I said in #5, this looks like a more general bug: https://code.google.com/p/chromium/issues/detail?id=376728 Who's our ...
6 years, 6 months ago (2014-06-04 08:10:51 UTC) #10
dglazkov
On 2014/06/04 08:10:51, philipj wrote: > As I said in #5, this looks like a ...
6 years, 6 months ago (2014-06-04 14:34:17 UTC) #11
hayato
On 2014/06/04 14:34:17, dglazkov wrote: > On 2014/06/04 08:10:51, philipj wrote: > > As I ...
6 years, 6 months ago (2014-06-05 03:59:48 UTC) #12
eric_li
Updated patch set 2, while HTMLMediaElement finished switching fullscreen and non-fullscreen, update the HoverActive state ...
6 years, 6 months ago (2014-06-10 07:36:18 UTC) #13
eric_li
Hi philipj and dglazkov, Do you have any comments on the patch set 2?
6 years, 6 months ago (2014-06-20 02:46:48 UTC) #14
dglazkov
On 2014/06/20 at 02:46:48, jingshui.li wrote: > Hi philipj and dglazkov, > Do you have ...
6 years, 6 months ago (2014-06-20 04:16:44 UTC) #15
philipj_slow
On 2014/06/20 04:16:44, dglazkov wrote: > On 2014/06/20 at 02:46:48, jingshui.li wrote: > > Hi ...
6 years, 6 months ago (2014-06-20 21:18:17 UTC) #16
eric_li
Thanks for comments, I will investigate and verify it.
6 years, 6 months ago (2014-06-23 23:32:44 UTC) #17
philipj_slow
Any update on this? Please close this review if you're not working on it.
6 years, 3 months ago (2014-09-10 10:00:58 UTC) #18
xun.sun
On 2014/09/10 10:00:58, philipj wrote: > Any update on this? Please close this review if ...
6 years, 3 months ago (2014-09-11 03:47:17 UTC) #19
philipj_slow
On 2014/09/11 03:47:17, xun.sun wrote: > On 2014/09/10 10:00:58, philipj wrote: > > Any update ...
6 years, 3 months ago (2014-09-11 10:18:04 UTC) #20
xun.sun
On 2014/09/11 10:18:04, philipj wrote: > On 2014/09/11 03:47:17, xun.sun wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-16 12:29:34 UTC) #21
philipj_slow
On 2014/09/16 12:29:34, xun.sun wrote: > Now if I try to make a video element ...
6 years, 3 months ago (2014-09-16 12:33:03 UTC) #22
xun.sun
On 2014/09/16 12:33:03, philipj wrote: > On 2014/09/16 12:29:34, xun.sun wrote: > > Now if ...
6 years, 3 months ago (2014-09-16 13:47:10 UTC) #23
philipj_slow
On 2014/09/16 13:47:10, xun.sun wrote: > On 2014/09/16 12:33:03, philipj wrote: > > On 2014/09/16 ...
6 years, 3 months ago (2014-09-17 10:50:40 UTC) #24
xun.sun
6 years, 2 months ago (2014-10-14 15:45:17 UTC) #25
On 2014/09/17 10:50:40, philipj wrote:
> On 2014/09/16 13:47:10, xun.sun wrote:
> > On 2014/09/16 12:33:03, philipj wrote:
> > > On 2014/09/16 12:29:34, xun.sun wrote:
> > > > Now if I try to make a video element fullscreen on Android, the video
> > element
> > > > would dismiss with audio playing.
> > > 
> > > I'm not sure what this means. I thought fullscreen just didn't work at all
> in
> > > Content Shell for Android.
> > 
> > Fullscreen is not working in ContentShell for Android. It used to work
before
> so
> > this is a regression. And I am looking for hints / help to restore this.
> 
> Oh, it used to work? I was under the impression that it had never worked. If
you
> know when it worked, then it's simply a matter of bisecting.
> 
> > > > Any idea what might be wrong on Android? Since the behavior is now
> different
> > > > than that described in
> > > > https://code.google.com/p/chromium/issues/detail?id=396747, simply
> bisecting
> > > > might be ineffective.
> > > 
> > > AFAIK, the problem is that the bits responsible for actually going
> fullscreen
> > > aren't public, as they're integrated with Chrome for Android and Opera for
> > > Android's respective UI layer. It would be great to pull as much as
possible
> > > into shared code, but I haven't looked at how feasible that is.
> > 
> > Could you clarify what this means for Content Shell for Android?
> 
> AFAIK, fullscreen doesn't work for Content Shell for Android. If it once did
> work then it can presumably be fixed easily. My assumption was that there's
just
> a bunch of code missing, which would have to be written.

Please close this CL as it's obsoleted by
https://codereview.chromium.org/552903004/.

Powered by Google App Engine
This is Rietveld 408576698