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

Issue 100743003: Extend content::DesktopMediaID to allow Aura windows as capture sources. (Closed)

Created:
7 years ago by Sergey Ulanov
Modified:
7 years ago
CC:
chromium-reviews, fischman+watch_chromium.org, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Extend content::DesktopMediaID to allow Aura windows as capture sources. The new DesktopCaptureID::TYPE_AURA_WINDOW will be used for Desktop Capture API to tell the content layer to capture Aura windows instead of native screen/windows. Also moved DesktopCaptureID to content/public/browser from content/public/common - it doesn't make sense to use that class in the renderer. BUG=295102 R=ben@chromium.org, cpu@chromium.org, hshi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241031

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -170 lines) Patch
M chrome/browser/media/desktop_media_list.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/desktop_media_picker.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 5 6 chunks +26 lines, -25 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device.cc View 1 2 3 4 5 2 chunks +1 line, -8 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura.h View 1 2 3 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura.cc View 1 2 3 5 5 chunks +9 lines, -15 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 3 chunks +8 lines, -7 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
A + content/public/browser/desktop_media_id.h View 1 2 3 4 5 6 4 chunks +18 lines, -3 lines 0 comments Download
A content/public/browser/desktop_media_id.cc View 1 2 3 4 5 6 1 chunk +147 lines, -0 lines 0 comments Download
M content/public/common/desktop_media_id.h View 1 1 chunk +0 lines, -57 lines 0 comments Download
M content/public/common/desktop_media_id.cc View 1 1 chunk +0 lines, -41 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
Sergey Ulanov
7 years ago (2013-12-04 02:45:52 UTC) #1
jam
it seems odd that this API would have to differentiate between a normal window and ...
7 years ago (2013-12-04 18:29:23 UTC) #2
Sergey Ulanov
On 2013/12/04 18:29:23, jam wrote: > it seems odd that this API would have to ...
7 years ago (2013-12-04 20:35:54 UTC) #3
hshi1
https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h File content/browser/renderer_host/media/desktop_capture_device_ash.h (right): https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h#newcode24 content/browser/renderer_host/media/desktop_capture_device_ash.h:24: class CONTENT_EXPORT DesktopCaptureDeviceAsh If I understand it correctly, this ...
7 years ago (2013-12-04 21:15:39 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h File content/browser/renderer_host/media/desktop_capture_device_ash.h (right): https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h#newcode24 content/browser/renderer_host/media/desktop_capture_device_ash.h:24: class CONTENT_EXPORT DesktopCaptureDeviceAsh On 2013/12/04 21:15:39, hshi1 wrote: > ...
7 years ago (2013-12-04 21:41:07 UTC) #5
hshi1
On 2013/12/04 21:41:07, Sergey Ulanov wrote: > https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h > File content/browser/renderer_host/media/desktop_capture_device_ash.h (right): > > https://codereview.chromium.org/100743003/diff/40001/content/browser/renderer_host/media/desktop_capture_device_ash.h#newcode24 ...
7 years ago (2013-12-04 21:45:50 UTC) #6
Sergey Ulanov
Renamed it in https://codereview.chromium.org/104653007/. PTAL
7 years ago (2013-12-04 23:41:25 UTC) #7
jam
I'm adding cpu and ben for their thoughts on this, I'll defer to them as ...
7 years ago (2013-12-05 00:20:08 UTC) #8
hshi1
https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/desktop_capture_device_aura.cc File content/browser/renderer_host/media/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/desktop_capture_device_aura.cc#newcode195 content/browser/renderer_host/media/desktop_capture_device_aura.cc:195: desktop_window_->bounds().height())); Why not use desktop_window_->bounds() directly here? I'll probably ...
7 years ago (2013-12-05 01:36:09 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/desktop_capture_device_aura.cc File content/browser/renderer_host/media/desktop_capture_device_aura.cc (right): https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/desktop_capture_device_aura.cc#newcode195 content/browser/renderer_host/media/desktop_capture_device_aura.cc:195: desktop_window_->bounds().height())); On 2013/12/05 01:36:10, hshi1 wrote: > Why not ...
7 years ago (2013-12-05 01:41:50 UTC) #10
hshi1
LGTM with one more comment. https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/video_capture_manager.cc#newcode28 content/browser/renderer_host/media/video_capture_manager.cc:28: #if defined(OS_CHROMEOS) this should ...
7 years ago (2013-12-05 01:51:44 UTC) #11
cpu_(ooo_6.6-7.5)
I am fairly confused about the use of the ifdefs on this CL. Let me ...
7 years ago (2013-12-06 19:23:28 UTC) #12
Sergey Ulanov
On 2013/12/06 19:23:28, cpu wrote: > I am fairly confused about the use of the ...
7 years ago (2013-12-06 19:36:47 UTC) #13
Sergey Ulanov
https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/100743003/diff/70001/content/browser/renderer_host/media/video_capture_manager.cc#newcode28 content/browser/renderer_host/media/video_capture_manager.cc:28: #if defined(OS_CHROMEOS) On 2013/12/05 01:51:44, hshi1 wrote: > this ...
7 years ago (2013-12-06 19:51:38 UTC) #14
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/100743003/diff/90001/content/public/browser/desktop_media_id.cc File content/public/browser/desktop_media_id.cc (right): https://codereview.chromium.org/100743003/diff/90001/content/public/browser/desktop_media_id.cc#newcode60 content/public/browser/desktop_media_id.cc:60: std::map<int, aura::Window*> id_to_window_map_; I am not sure this is ...
7 years ago (2013-12-07 02:14:37 UTC) #15
Sergey Ulanov
https://codereview.chromium.org/100743003/diff/90001/content/public/browser/desktop_media_id.cc File content/public/browser/desktop_media_id.cc (right): https://codereview.chromium.org/100743003/diff/90001/content/public/browser/desktop_media_id.cc#newcode60 content/public/browser/desktop_media_id.cc:60: std::map<int, aura::Window*> id_to_window_map_; On 2013/12/07 02:14:37, cpu wrote: > ...
7 years ago (2013-12-07 02:29:33 UTC) #16
Sergey Ulanov
cpu, ben: ping
7 years ago (2013-12-09 19:42:03 UTC) #17
Ben Goodger (Google)
On 2013/12/09 19:42:03, Sergey Ulanov wrote: > cpu, ben: ping I will get to this ...
7 years ago (2013-12-10 17:43:00 UTC) #18
hshi1
https://codereview.chromium.org/100743003/diff/90001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/100743003/diff/90001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode354 chrome/browser/media/media_capture_devices_dispatcher.cc:354: screen_id.ToString(), "Screen")); Any reason why the above change is ...
7 years ago (2013-12-10 21:24:02 UTC) #19
Sergey Ulanov
https://codereview.chromium.org/100743003/diff/90001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/100743003/diff/90001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode354 chrome/browser/media/media_capture_devices_dispatcher.cc:354: screen_id.ToString(), "Screen")); On 2013/12/10 21:24:02, hshi1 wrote: > Any ...
7 years ago (2013-12-10 22:29:56 UTC) #20
Ben Goodger (Google)
Is this for capturing any window on the ash desktop or just the content area?
7 years ago (2013-12-10 23:09:52 UTC) #21
Sergey Ulanov
On 2013/12/10 23:09:52, Ben Goodger (Google) wrote: > Is this for capturing any window on ...
7 years ago (2013-12-11 00:14:45 UTC) #22
Sergey Ulanov
ben: ping
7 years ago (2013-12-11 19:41:46 UTC) #23
Ben Goodger (Google)
lgtm
7 years ago (2013-12-13 00:55:44 UTC) #24
cpu_(ooo_6.6-7.5)
lgtm
7 years ago (2013-12-14 01:22:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/100743003/170001
7 years ago (2013-12-14 06:31:31 UTC) #26
commit-bot: I haz the power
Failed to apply patch for content/renderer/media/media_stream_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-14 06:31:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/100743003/190001
7 years ago (2013-12-14 08:19:43 UTC) #28
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202381
7 years ago (2013-12-14 09:16:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/100743003/190001
7 years ago (2013-12-16 09:36:45 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204622
7 years ago (2013-12-16 11:11:33 UTC) #31
Sergey Ulanov
7 years ago (2013-12-16 21:53:28 UTC) #32
Message was sent while issue was closed.
Committed patchset #8 manually as r241031 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698