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

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)

Created:
3 years, 9 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 9 months ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add flag for enabling/disabling video fullscreen detection This CL addes flag for enabling/disabling video fullscreen detection. So we can reduce the overhead of MediaCustomControlsFullscreenDetector if the client side doesn't need it. The downstream change will be in the subclass of AppHooks.java. BUG=699565 Review-Url: https://codereview.chromium.org/2738893002 Cr-Commit-Position: refs/heads/master@{#457412} Committed: https://chromium.googlesource.com/chromium/src/+/93e959d18bd91a0ebd267561d44d8f29cb2561d9

Patch Set 1 #

Total comments: 2

Patch Set 2 : s/AppHooksHelper/AppHooks #

Total comments: 6

Patch Set 3 : addressed mlamouri's comments #

Patch Set 4 : fixed tests #

Total comments: 2

Patch Set 5 : fixed tests #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java View 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/android/app_hooks.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/android/app_hooks.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 1 chunk +2 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 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLVideoElement.cpp View 1 2 3 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.cpp View 1 2 3 4 5 4 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (32 generated)
Zhiqiang Zhang (Slow)
PTAL
3 years, 9 months ago (2017-03-08 15:43:24 UTC) #2
Zhiqiang Zhang (Slow)
3 years, 9 months ago (2017-03-08 15:46:46 UTC) #7
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2738893002/diff/1/chrome/browser/android/app_hooks_helper.h File chrome/browser/android/app_hooks_helper.h (right): https://codereview.chromium.org/2738893002/diff/1/chrome/browser/android/app_hooks_helper.h#newcode14 chrome/browser/android/app_hooks_helper.h:14: class AppHooksHelper { Should this just be AppHooks? ...
3 years, 9 months ago (2017-03-09 17:15:30 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/2738893002/diff/20001/chrome/browser/android/app_hooks.h File chrome/browser/android/app_hooks.h (right): https://codereview.chromium.org/2738893002/diff/20001/chrome/browser/android/app_hooks.h#newcode20 chrome/browser/android/app_hooks.h:20: ~AppHooks() {} Can you implement these in the cc ...
3 years, 9 months ago (2017-03-14 12:02:24 UTC) #15
Zhiqiang Zhang (Slow)
PTAL +mkwst: third_party/WebKit/ content/public/common/common_param_traints_macros.h +clamy: content/ https://codereview.chromium.org/2738893002/diff/1/chrome/browser/android/app_hooks_helper.h File chrome/browser/android/app_hooks_helper.h (right): https://codereview.chromium.org/2738893002/diff/1/chrome/browser/android/app_hooks_helper.h#newcode14 chrome/browser/android/app_hooks_helper.h:14: class AppHooksHelper { ...
3 years, 9 months ago (2017-03-14 13:15:29 UTC) #17
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2738893002/diff/60001/chrome/browser/android/app_hooks.h File chrome/browser/android/app_hooks.h (right): https://codereview.chromium.org/2738893002/diff/60001/chrome/browser/android/app_hooks.h#newcode14 chrome/browser/android/app_hooks.h:14: class AppHooks { Actually, just realised you could ...
3 years, 9 months ago (2017-03-14 15:36:15 UTC) #24
Mike West
LGTM.
3 years, 9 months ago (2017-03-14 15:47:54 UTC) #25
Zhiqiang Zhang (Slow)
3 years, 9 months ago (2017-03-15 16:32:45 UTC) #33
alexmos
content/ LGTM
3 years, 9 months ago (2017-03-15 16:53:10 UTC) #34
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/2738893002/80001
3 years, 9 months ago (2017-03-15 17:44:20 UTC) #37
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-15 21:09:09 UTC) #39
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/2738893002/100001
3 years, 9 months ago (2017-03-16 11:05:39 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 13:11:08 UTC) #45
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/93e959d18bd91a0ebd267561d44d...

Powered by Google App Engine
This is Rietveld 408576698