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

Issue 158253002: Tabs being screen-captured will fullscreen within their tab contents area. (Closed)

Created:
6 years, 10 months ago by miu
Modified:
6 years, 10 months ago
Reviewers:
scheib, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Tabs being screen-captured will fullscreen within their tab contents area. Note: This change in behavior only applies when the --embed-flash-fullscreen experimental flag is enabled. This change adds additional logic to FullscreenController to prevent the browser window from entering fullscreen if a tab is being screen-captured. This allows the user to retain control of their desktop to work in other browser tabs or applications while the fullscreen view is displayed on a remote screen (e.g., a Chromecast receiver). Furthermore, if a user switches to a different tab, FullscreenController will set the size of the hidden view to the video resolution of the capture. This is both a quality and performance improvement as harmful scaling and letterboxing can be skipped. BUG=256870 TEST=New FullscreenController state tests. Ran all disabled FullscreenControllerInteractiveTests (in interactive_ui_tests). Also confirmed all new functionality manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250872

Patch Set 1 #

Total comments: 36

Patch Set 2 : Addressed scheib's review comments. Rebased. #

Total comments: 4

Patch Set 3 : Add DCHECK to make sure tab capture isn't started after tab fullscreen. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -17 lines) Patch
M chrome/browser/ui/browser.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller.h View 1 6 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller.cc View 1 2 7 chunks +90 lines, -9 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller_interactive_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller_state_test.cc View 2 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller_state_unittest.cc View 1 2 chunks +242 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
miu
scheib: Could you please review this change? Change description explains most of this. Bug 256870 ...
6 years, 10 months ago (2014-02-08 03:59:47 UTC) #1
scheib
https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.cc File chrome/browser/ui/fullscreen/fullscreen_controller.cc (right): https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.cc#newcode77 chrome/browser/ui/fullscreen/fullscreen_controller.cc:77: return web_contents == fullscreened_tab_ || Why drop the DCHECK ...
6 years, 10 months ago (2014-02-12 01:41:16 UTC) #2
miu
PTAL. I've addressed all your comments. https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.cc File chrome/browser/ui/fullscreen/fullscreen_controller.cc (right): https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.cc#newcode77 chrome/browser/ui/fullscreen/fullscreen_controller.cc:77: return web_contents == ...
6 years, 10 months ago (2014-02-12 08:25:19 UTC) #3
scheib
lgtm with a small nit: https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.h File chrome/browser/ui/fullscreen/fullscreen_controller.h (right): https://codereview.chromium.org/158253002/diff/1/chrome/browser/ui/fullscreen/fullscreen_controller.h#newcode74 chrome/browser/ui/fullscreen/fullscreen_controller.h:74: bool IsFullscreenForTabOrPending() const; On ...
6 years, 10 months ago (2014-02-12 18:01:36 UTC) #4
miu
sky: Need OWNERS approval for one-line addition to browser.cc.
6 years, 10 months ago (2014-02-12 20:17:17 UTC) #5
sky
https://codereview.chromium.org/158253002/diff/140001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/158253002/diff/140001/chrome/browser/ui/browser.cc#newcode984 chrome/browser/ui/browser.cc:984: fullscreen_controller_->OnTabDetachedFromView(old_contents); Is it possible to make fullscreencontroller observer the ...
6 years, 10 months ago (2014-02-12 21:30:12 UTC) #6
miu
scheib: Added DCHECK as you requested, to notify a developer if we break the assumption ...
6 years, 10 months ago (2014-02-12 21:49:14 UTC) #7
sky
Ok, LGTM
6 years, 10 months ago (2014-02-12 21:51:15 UTC) #8
miu
The CQ bit was checked by miu@chromium.org
6 years, 10 months ago (2014-02-12 21:53:02 UTC) #9
miu
Thanks everyone for the quick turnaround! The team will be very happy to have this ...
6 years, 10 months ago (2014-02-12 21:54:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/158253002/290001
6 years, 10 months ago (2014-02-12 21:56:01 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 00:53:12 UTC) #12
Message was sent while issue was closed.
Change committed as 250872

Powered by Google App Engine
This is Rietveld 408576698