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

Issue 1863953002: <webview>: Fix missing transparency in captureVisibleRegion(). (Closed)

Created:
4 years, 8 months ago by avallee
Modified:
4 years, 8 months ago
Reviewers:
Finnur, wjmaclean
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

<webview>: Fix missing transparency in captureVisibleRegion(). In output formats that support transparency (png), WebContentsCaptureClient::EncodeBitmap should propagate the alpha values of the WebContents if that contents has any. BUG=600496 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/71152bea8837143acecf76d4c662b3482eeab66a Cr-Commit-Position: refs/heads/master@{#385821}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Apply wjmaclean's comments. #

Total comments: 4

Patch Set 3 : Address finnur comments. #

Patch Set 4 : fix build break #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_api.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/api/guest_view/web_view/web_view_internal_api.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M extensions/browser/api/guest_view/web_view/web_view_internal_api.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/browser/api/web_contents_capture_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/web_contents_capture_client.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
avallee
PTAL. Sample test case at https://github.com/avallee/chrome-samples/tree/master/webview_transparency
4 years, 8 months ago (2016-04-06 01:56:31 UTC) #2
wjmaclean
LGTM with nits (see comments below). Also, perhaps your example could be placed under chrome/common/extensions/docs/examples/api/tabs/ ...
4 years, 8 months ago (2016-04-06 12:39:21 UTC) #3
avallee
https://codereview.chromium.org/1863953002/diff/1/extensions/browser/api/web_contents_capture_client.cc File extensions/browser/api/web_contents_capture_client.cc (right): https://codereview.chromium.org/1863953002/diff/1/extensions/browser/api/web_contents_capture_client.cc#newcode123 extensions/browser/api/web_contents_capture_client.cc:123: /* Don't discard transparency */ On 2016/04/06 12:39:20, wjmaclean ...
4 years, 8 months ago (2016-04-06 14:12:27 UTC) #4
jam
not sure why i'm added as a reviewer. please look for owners in these directories
4 years, 8 months ago (2016-04-06 17:13:45 UTC) #5
avallee
4 years, 8 months ago (2016-04-06 17:18:44 UTC) #9
Finnur
This almost slipped through the cracks in my review queue. In the future, please include ...
4 years, 8 months ago (2016-04-07 10:08:33 UTC) #10
avallee
https://codereview.chromium.org/1863953002/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.h File extensions/browser/api/guest_view/web_view/web_view_internal_api.h (right): https://codereview.chromium.org/1863953002/diff/20001/extensions/browser/api/guest_view/web_view/web_view_internal_api.h#newcode46 extensions/browser/api/guest_view/web_view/web_view_internal_api.h:46: WebViewInternalCaptureVisibleRegionFunction() {} On 2016/04/07 10:08:33, Finnur wrote: > is_guest_transparent_(false) ...
4 years, 8 months ago (2016-04-07 14:21:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863953002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863953002/60001
4 years, 8 months ago (2016-04-07 18:06:47 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-07 18:50:46 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 18:55:01 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/71152bea8837143acecf76d4c662b3482eeab66a
Cr-Commit-Position: refs/heads/master@{#385821}

Powered by Google App Engine
This is Rietveld 408576698