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

Issue 1644073002: Desktop Share Audio User Permission (Closed)

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

Description

In this CL, we extend API chooseDesktopMedia by adding one more source type "audio". With that, the window picker will show a checkbox which serves the purpose as asking user permission for audio share. If the user checks the checkbox, then we will generate audio stream. Current functionality is behind flag --enable-audio-support-for-desktop-share. Design Doc is at https://goo.gl/yIJ08b This CL is implementation of Use Case 4.a BUG=557222 Committed: https://crrev.com/1ab5937e528db4ba1a1d361ac39f079a17b6f0d4 Cr-Commit-Position: refs/heads/master@{#373576}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Initial upload #

Patch Set 3 : Behind flag #

Total comments: 2

Patch Set 4 : Dynamically Disable Checkbox #

Patch Set 5 : Fix Compiler Issue #

Total comments: 22

Patch Set 6 : UI Layout Fix #

Total comments: 2

Patch Set 7 : Minor Style Change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -45 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/desktop_capture/desktop_capture_apitest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc View 1 2 5 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/media/desktop_capture_access_handler.cc View 1 2 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/media/desktop_media_picker.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/media_picker/desktop_media_picker_cocoa.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/media_picker/desktop_media_picker_cocoa.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.h View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.cc View 1 2 3 4 5 6 11 chunks +98 lines, -33 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/desktop_capture.json View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/examples/api/desktopCapture/app.js View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/desktop_media_id.h View 1 1 chunk +3 lines, -0 lines 1 comment Download
M extensions/common/switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/switches.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (17 generated)
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1644073002/diff/1/chrome/common/extensions/api/desktop_capture.json File chrome/common/extensions/api/desktop_capture.json (right): https://codereview.chromium.org/1644073002/diff/1/chrome/common/extensions/api/desktop_capture.json#newcode37 chrome/common/extensions/api/desktop_capture.json:37: "name": "request_audio_permission", Proper naming scheme for object fields would ...
4 years, 10 months ago (2016-01-28 19:25:54 UTC) #2
qiangchen
Just found, we can actually add a enum value for parameter sources rather than adding ...
4 years, 10 months ago (2016-01-29 01:06:17 UTC) #7
qiangchen
Hi, Niklas: I updated design doc by adding use cases, so the full picture will ...
4 years, 10 months ago (2016-01-29 18:20:33 UTC) #10
Ken Rockot(use gerrit already)
I like this API better :) https://codereview.chromium.org/1644073002/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1644073002/diff/60001/chrome/app/generated_resources.grd#newcode13529 chrome/app/generated_resources.grd:13529: + Also share ...
4 years, 10 months ago (2016-01-29 22:20:15 UTC) #11
Ken Rockot(use gerrit already)
On 2016/01/29 at 22:20:15, Ken Rockot wrote: > I like this API better :) > ...
4 years, 10 months ago (2016-01-29 22:22:38 UTC) #12
qiangchen
Thanks for your review. Replied. I'll make the checkbox more user friendly, and update snapshots ...
4 years, 10 months ago (2016-02-02 16:36:42 UTC) #13
qiangchen
Hi, PTAL, Thanks. Please mainly focus on your owned files. msw: Picker Window UI (Mac ...
4 years, 10 months ago (2016-02-02 22:58:29 UTC) #15
Ken Rockot(use gerrit already)
extensions lgtm https://codereview.chromium.org/1644073002/diff/100001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc File chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc#newcode103 chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc:103: bool has_flag = base::CommandLine::ForCurrentProcess()->HasSwitch( nit: i don't ...
4 years, 10 months ago (2016-02-03 14:22:26 UTC) #17
qiangchen
https://codereview.chromium.org/1644073002/diff/100001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc File chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc#newcode103 chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc:103: bool has_flag = base::CommandLine::ForCurrentProcess()->HasSwitch( On 2016/02/03 14:22:25, Ken Rockot ...
4 years, 10 months ago (2016-02-03 17:41:41 UTC) #19
xhwang
xhwang -> tommi since this is WebRTC related change
4 years, 10 months ago (2016-02-03 18:13:32 UTC) #21
msw
https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd#newcode13532 chrome/app/generated_resources.grd:13532: + We do not support audio for window share. ...
4 years, 10 months ago (2016-02-03 18:21:56 UTC) #22
qiangchen
Fixed as msw@ pointed out. Thanks. https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd#newcode13532 chrome/app/generated_resources.grd:13532: + We do ...
4 years, 10 months ago (2016-02-03 19:19:02 UTC) #23
msw
lgtm with a nit https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd#newcode13532 chrome/app/generated_resources.grd:13532: + We do not support ...
4 years, 10 months ago (2016-02-03 19:34:19 UTC) #24
nasko
Rubberstamp LGTM on content/ change.
4 years, 10 months ago (2016-02-03 22:11:32 UTC) #25
qiangchen
https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1644073002/diff/100001/chrome/app/generated_resources.grd#newcode13532 chrome/app/generated_resources.grd:13532: + We do not support audio for window share. ...
4 years, 10 months ago (2016-02-03 23:45:10 UTC) #26
tommi (sloooow) - chröme
Guido - can you take a look?
4 years, 10 months ago (2016-02-04 10:48:38 UTC) #28
Guido Urdaneta
chrome/browser/media non-owner lgtm
4 years, 10 months ago (2016-02-04 13:00:53 UTC) #29
qiangchen
On 2016/02/04 13:00:53, Guido Urdaneta wrote: > chrome/browser/media non-owner lgtm Hi, tommi@ Can you give ...
4 years, 10 months ago (2016-02-04 16:42:43 UTC) #30
tommi (sloooow) - chröme
rs lgtm - thanks for taking a look guido
4 years, 10 months ago (2016-02-04 16:47:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644073002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644073002/140001
4 years, 10 months ago (2016-02-04 18:52:55 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-02-04 19:05:43 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1ab5937e528db4ba1a1d361ac39f079a17b6f0d4 Cr-Commit-Position: refs/heads/master@{#373576}
4 years, 10 months ago (2016-02-04 19:07:11 UTC) #38
Sergey Ulanov
4 years, 8 months ago (2016-03-29 18:32:12 UTC) #40
Message was sent while issue was closed.
https://codereview.chromium.org/1644073002/diff/140001/content/public/browser...
File content/public/browser/desktop_media_id.h (right):

https://codereview.chromium.org/1644073002/diff/140001/content/public/browser...
content/public/browser/desktop_media_id.h:51: bool operator==(const
DesktopMediaID& other) const;
I think you also need to update implementation of these operators to take
audio_share into account.

Powered by Google App Engine
This is Rietveld 408576698