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

Issue 1622733002: Add CombinedDesktopMediaList class (Closed)

Created:
4 years, 11 months ago by GeorgeZ
Modified:
4 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, posciak+watch_chromium.org, tfarina, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL adds CombinedDesktopMediaList class and its associated unit tests. It intends to support chrome tab capture for JavaScript API chooseDesktopMedia(). Design document is in https://docs.google.com/document/d/1zZOiayDzVkuIQ3twEdiE6S-LTXz9fWOGKjbMIsLTcAk/edit#heading=h.cetuprbl19fv BUG=557222 Committed: https://crrev.com/2716e8e3bf7a9f216de1ece328037fef76e64a27 Cr-Commit-Position: refs/heads/master@{#372228}

Patch Set 1 #

Patch Set 2 : Fixed Mac OSX #

Patch Set 3 : Fixed for android build #

Total comments: 51

Patch Set 4 : #

Total comments: 18

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : fixed a bug #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -91 lines) Patch
A chrome/browser/media/combined_desktop_media_list.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/media/combined_desktop_media_list.cc View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download
A chrome/browser/media/combined_desktop_media_list_unittest.cc View 1 2 3 4 1 chunk +379 lines, -0 lines 0 comments Download
M chrome/browser/media/desktop_media_list_ash_unittest.cc View 5 chunks +19 lines, -17 lines 0 comments Download
M chrome/browser/media/desktop_media_list_base.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/desktop_media_list_base.cc View 5 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/media/desktop_media_list_observer.h View 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/media/fake_desktop_media_list.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list_unittest.cc View 9 chunks +35 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h View 1 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.mm View 1 1 chunk +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.h View 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.cc View 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (9 generated)
GeorgeZ
Sergeyu and Qiang, Would you please have an review of this CL. Thanks, George
4 years, 11 months ago (2016-01-25 21:05:36 UTC) #3
qiangchen
Some suggestions. Haven't looked at unittests. Will do that later. https://codereview.chromium.org/1622733002/diff/40001/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/1622733002/diff/40001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc#newcode102 ...
4 years, 11 months ago (2016-01-26 01:01:50 UTC) #4
Sergey Ulanov
Can this be split into two CL's? I don't think there is any reason these ...
4 years, 11 months ago (2016-01-26 03:32:34 UTC) #5
qiangchen
replied on the commenting of unused parameter variable. https://codereview.chromium.org/1622733002/diff/40001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/1622733002/diff/40001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode314 chrome/browser/ui/views/desktop_media_picker_views.cc:314: void ...
4 years, 11 months ago (2016-01-26 17:42:04 UTC) #6
Sergey Ulanov
On 2016/01/26 17:42:04, qiangchenC wrote: > replied on the commenting of unused parameter variable. > ...
4 years, 11 months ago (2016-01-26 17:55:10 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/1622733002/diff/40001/chrome/browser/media/combined_desktop_media_list.cc File chrome/browser/media/combined_desktop_media_list.cc (right): https://codereview.chromium.org/1622733002/diff/40001/chrome/browser/media/combined_desktop_media_list.cc#newcode8 chrome/browser/media/combined_desktop_media_list.cc:8: std::vector<scoped_ptr<DesktopMediaList>>& media_lists) { reference parameters can only be const. ...
4 years, 11 months ago (2016-01-26 18:06:54 UTC) #8
qiangchen
Some suggestions on unit test. In particular use of VerifyAndClearExpectations is tricky. https://codereview.chromium.org/1622733002/diff/40001/chrome/browser/media/combined_desktop_media_list_unittest.cc File chrome/browser/media/combined_desktop_media_list_unittest.cc ...
4 years, 11 months ago (2016-01-26 20:43:10 UTC) #9
GeorgeZ
Sergey and Qiang, A patch was uploaded to address your comments. Tab related code had ...
4 years, 11 months ago (2016-01-27 00:17:39 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/1622733002/diff/60001/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/1622733002/diff/60001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc#newcode150 chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc:150: new CombinedDesktopMediaList(media_lists)); Does this need to be part of ...
4 years, 11 months ago (2016-01-27 00:36:31 UTC) #12
GeorgeZ
Sergey, Patches were uploaded to address your comments. Thanks, George https://codereview.chromium.org/1622733002/diff/60001/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/1622733002/diff/60001/chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc#newcode150 ...
4 years, 11 months ago (2016-01-27 22:57:17 UTC) #15
qiangchen
lgtm
4 years, 10 months ago (2016-01-28 18:40:03 UTC) #16
Sergey Ulanov
lgtm
4 years, 10 months ago (2016-01-28 21:16:15 UTC) #17
GeorgeZ
Msw, As an owner, would you please have a review of chrome/browser/ui/views/desktop_media_picker_views.h chrome/browser/ui/views/desktop_media_picker_views.cc Thanks, George
4 years, 10 months ago (2016-01-28 21:37:18 UTC) #19
msw
c/b/ui/views rubber stamp lgtm (didn't look elsewhere)
4 years, 10 months ago (2016-01-28 23:32:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622733002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622733002/180001
4 years, 10 months ago (2016-01-28 23:53:54 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-01-29 00:51:11 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 00:52:27 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/2716e8e3bf7a9f216de1ece328037fef76e64a27
Cr-Commit-Position: refs/heads/master@{#372228}

Powered by Google App Engine
This is Rietveld 408576698