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

Issue 2830713003: [Media controls] Add rotate-to-fullscreen gesture behind flag (Closed)

Created:
3 years, 8 months ago by johnme
Modified:
3 years, 7 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, haraken, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, rwlbuis, sof, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media controls] Add rotate-to-fullscreen gesture behind flag Adds an experimental gesture on Android, which automatically enters/exits fullscreen when the user rotates their device to/from the natural orientation of the video. Disabled by default; see video-rotate-to-fullscreen in chrome://flags BUG=713225 Review-Url: https://codereview.chromium.org/2830713003 Cr-Commit-Position: refs/heads/master@{#468137} Committed: https://chromium.googlesource.com/chromium/src/+/913ee5fe4cfcc42ebc568965169258bc37fb0237

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review comments #

Total comments: 12

Patch Set 3 : Address review comments (square videos, document fullscreen, logs) & about:flags UMA #

Patch Set 4 : Fix MSVC #

Patch Set 5 : Use __func__ instead per styleguide #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1049 lines, -13 lines) Patch
M chrome/browser/about_flags.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/media_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp View 1 2 6 chunks +18 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.h View 1 1 chunk +69 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp View 1 2 3 4 1 chunk +233 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp View 1 2 1 chunk +663 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (14 generated)
johnme
3 years, 8 months ago (2017-04-19 16:38:13 UTC) #2
mlamouri (slow - plz ping)
Some early comments. Looked at everything except the tests. Will have another look later. https://codereview.chromium.org/2830713003/diff/1/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp ...
3 years, 8 months ago (2017-04-19 17:10:46 UTC) #4
johnme
Addressed review comments - thanks! https://codereview.chromium.org/2830713003/diff/1/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp File third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp (right): https://codereview.chromium.org/2830713003/diff/1/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp#newcode261 third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp:261: } // TODO(johnme): Make ...
3 years, 8 months ago (2017-04-19 18:21:28 UTC) #5
johnme
sandersd@chromium.org: Please review changes in jochen@chromium.org: Please review changes in
3 years, 8 months ago (2017-04-19 18:28:00 UTC) #7
johnme
jochen@chromium.org, please review ElementVisibilityObserver tweaks: - third_party/WebKit/Source/core/dom and plumbing a new flag: - content/browser - ...
3 years, 8 months ago (2017-04-19 18:32:46 UTC) #8
sandersd (OOO until July 31)
media/ lgtm.
3 years, 8 months ago (2017-04-19 20:33:39 UTC) #9
jochen (gone - plz use gerrit)
I'm not a good reviewer for ElementVisibilityObserver stuff. I also wonder why you expose the ...
3 years, 8 months ago (2017-04-20 09:48:25 UTC) #10
mlamouri (slow - plz ping)
On 2017/04/20 at 09:48:25, jochen wrote: > I'm not a good reviewer for ElementVisibilityObserver stuff. ...
3 years, 8 months ago (2017-04-20 10:28:31 UTC) #11
jochen (gone - plz use gerrit)
maybe a setting would be a better fit then? you picking this up & instrumentation ...
3 years, 8 months ago (2017-04-20 10:30:29 UTC) #12
mlamouri (slow - plz ping)
On 2017/04/20 at 10:30:29, jochen wrote: > maybe a setting would be a better fit ...
3 years, 8 months ago (2017-04-20 13:22:29 UTC) #13
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp File third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp (right): https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp#newcode92 third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp:92: // << static_cast<int>(current_screen_orientation_); Will have to be cleaned-up ...
3 years, 8 months ago (2017-04-20 14:10:40 UTC) #14
mlamouri (slow - plz ping)
jochen@ and palmer@ PTAL
3 years, 8 months ago (2017-04-20 16:12:57 UTC) #15
palmer
I don't think I'm an OWNER of any of this code, am I?
3 years, 8 months ago (2017-04-20 18:12:49 UTC) #16
mlamouri (slow - plz ping)
On 2017/04/20 at 18:12:49, palmer wrote: > I don't think I'm an OWNER of any ...
3 years, 8 months ago (2017-04-21 15:35:09 UTC) #17
palmer
> I think johnme@ wants you to look at common_param_traits_macros.h change. Oh, right. LGTM!
3 years, 8 months ago (2017-04-21 17:28:07 UTC) #18
mlamouri (slow - plz ping)
-jochen@ +kinuko@
3 years, 8 months ago (2017-04-24 19:19:35 UTC) #20
kinuko
lgtm https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h File third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h (right): https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h#newcode95 third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h:95: // `m_videoElement` owns MediaControlsImpl that owns |this|. nit: ...
3 years, 8 months ago (2017-04-25 06:30:58 UTC) #21
mlamouri (slow - plz ping)
https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp File third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp (right): https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp#newcode92 third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegate.cpp:92: // << static_cast<int>(current_screen_orientation_); On 2017/04/25 at 06:30:58, kinuko wrote: ...
3 years, 8 months ago (2017-04-25 10:57:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830713003/10025
3 years, 8 months ago (2017-04-25 10:57:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/164301)
3 years, 8 months ago (2017-04-25 12:07:48 UTC) #26
johnme
Addressed review comments - thanks! https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h File third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h (right): https://codereview.chromium.org/2830713003/diff/10025/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h#newcode95 third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegate.h:95: // `m_videoElement` owns MediaControlsImpl ...
3 years, 7 months ago (2017-04-27 15:57:48 UTC) #27
johnme
isherman@chromium.org: Please review tools/metrics/histograms/histograms.xml Thanks!
3 years, 7 months ago (2017-04-27 15:59:33 UTC) #29
Ilya Sherman
histograms.xml lgtm
3 years, 7 months ago (2017-04-27 19:53:41 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830713003/30001
3 years, 7 months ago (2017-04-28 12:30:29 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/399707)
3 years, 7 months ago (2017-04-28 13:28:22 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830713003/70001
3 years, 7 months ago (2017-04-28 18:32:30 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 21:36:35 UTC) #41
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://chromium.googlesource.com/chromium/src/+/913ee5fe4cfcc42ebc5689651692...

Powered by Google App Engine
This is Rietveld 408576698