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 23944003: Implement Desktop Media Picker (Mac version) for Desktop Capture API (Closed)

Created:
7 years, 3 months ago by dcaiafa
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, feature-media-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Implement Desktop Media Picker (Mac version) for the Desktop Capture API This CL implements DesktopMediaPicker for the Mac used by the Desktop Capture API to present the user with a list of sources (including live thumbnails) to use. BUG=237907 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221874 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222156

Patch Set 1 #

Patch Set 2 : Fixed comments. #

Total comments: 46

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Addressed review comments. #

Total comments: 6

Patch Set 5 : Removed xib. Initializing content programmatically. #

Total comments: 13

Patch Set 6 : Pull in Quartz.framework. Fix nits. #

Total comments: 4

Patch Set 7 : Move Quartz.framework reference from ui.gyp to chrome_browser.gypi. #

Patch Set 8 : Update unittests to comply to DesktopMediaPickerModel change. #

Patch Set 9 : Clearing delegate/dataSource on dealloc. Fixes 10.6 tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+857 lines, -3 lines) Patch
M chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.mm View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_cocoa.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_cocoa.mm View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h View 1 2 3 4 5 6 7 8 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.mm View 1 2 3 4 5 6 7 8 1 chunk +295 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_unittest.mm View 1 2 3 4 5 6 7 1 chunk +250 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dcaiafa
rsesek@: could you please take a look at chrome/browser/ui/cocoa/media_picker/*? I fished your name from OWNERS ...
7 years, 3 months ago (2013-09-04 09:47:49 UTC) #1
Robert Sesek
This looks pretty good. Can you please attach a screen shot of the new UI? ...
7 years, 3 months ago (2013-09-04 20:23:13 UTC) #2
dcaiafa
Thanks! PTAL. I did review the document a while ago. I felt that the new ...
7 years, 3 months ago (2013-09-04 21:39:35 UTC) #3
dcaiafa
BTW, I attached a screenshot to the tracking bug.
7 years, 3 months ago (2013-09-04 22:07:32 UTC) #4
Robert Sesek
Just some nits. I'm not convinced that the UI is complex enough to warrant a ...
7 years, 3 months ago (2013-09-05 15:33:19 UTC) #5
dcaiafa
I removed the xib, and the contents are now created programatically. PTAL. https://codereview.chromium.org/23944003/diff/17001/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h File chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h ...
7 years, 3 months ago (2013-09-06 19:15:44 UTC) #6
Robert Sesek
Nice! Thanks. https://codereview.chromium.org/23944003/diff/4017/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h File chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h (right): https://codereview.chromium.org/23944003/diff/4017/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h#newcode26 chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h:26: IKImageBrowserView* sourceBrowser_; These need ownership comments. They ...
7 years, 3 months ago (2013-09-06 20:08:21 UTC) #7
dcaiafa
PTAL. Thanks! https://codereview.chromium.org/23944003/diff/4017/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h File chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h (right): https://codereview.chromium.org/23944003/diff/4017/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h#newcode26 chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h:26: IKImageBrowserView* sourceBrowser_; On 2013/09/06 20:08:21, rsesek wrote: ...
7 years, 3 months ago (2013-09-06 20:50:50 UTC) #8
Robert Sesek
https://codereview.chromium.org/23944003/diff/37001/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm File chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm (right): https://codereview.chromium.org/23944003/diff/37001/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm#newcode30 chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm:30: imageVersion_++; nit: ++imageVersion_ is preferred https://codereview.chromium.org/23944003/diff/37001/ui/ui.gyp File ui/ui.gyp (right): ...
7 years, 3 months ago (2013-09-06 21:10:12 UTC) #9
dcaiafa
PTAL https://codereview.chromium.org/23944003/diff/37001/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm File chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm (right): https://codereview.chromium.org/23944003/diff/37001/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm#newcode30 chrome/browser/ui/cocoa/media_picker/desktop_media_picker_item.mm:30: imageVersion_++; On 2013/09/06 21:10:13, rsesek wrote: > nit: ...
7 years, 3 months ago (2013-09-06 21:39:17 UTC) #10
Robert Sesek
LGTM
7 years, 3 months ago (2013-09-06 21:41:55 UTC) #11
Sergey Ulanov
LGTM. Thanks!
7 years, 3 months ago (2013-09-07 00:26:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/23944003/40001
7 years, 3 months ago (2013-09-07 00:28:22 UTC) #13
commit-bot: I haz the power
Change committed as 221874
7 years, 3 months ago (2013-09-07 03:26:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/23944003/58001
7 years, 3 months ago (2013-09-09 21:46:31 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 00:40:46 UTC) #16
Message was sent while issue was closed.
Change committed as 222156

Powered by Google App Engine
This is Rietveld 408576698