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

Issue 1410093008: Introduce chrome.displaySource API (Closed)

Created:
5 years, 1 month ago by Mikhail
Modified:
5 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org, shalamov, Reilly Grant (use Gerrit), Ken Rockot(use gerrit already), benwells, mek, Ilya Sherman, Alexei Svitkine (slow), mpearson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce chrome.displaySource API This patch introduces the 'chrome.displaySource' API including the idl file and the permission string and feature. The patch also provides bindings code and the implementation delegate interface for the 'getAvailableSinks', 'requestAuthentication' methods and for the 'onSinksUpdated' event. The API tests are included. The API proposal doc: https://docs.google.com/document/d/1svs0p_b6KAIiBrKjaORsA2D8Pd84u8ksnTCfubYVVWA BUG=242107 Committed: https://crrev.com/d19c83ee78b525d98a33f9fb320fcfffd1535206 Cr-Commit-Position: refs/heads/master@{#360299}

Patch Set 1 #

Patch Set 2 : Added warning message #

Total comments: 9

Patch Set 3 : Comments from Reilly #

Patch Set 4 : Added AuthenticationMethod enum #

Total comments: 6

Patch Set 5 : Comments from Antony #

Total comments: 14

Patch Set 6 : Comments from Antony #

Unified diffs Side-by-side diffs Delta from patch set Stats (+985 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_rules.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_api.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_api.cc View 1 2 3 4 5 1 chunk +97 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_apitest.cc View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_connection_delegate.h View 1 2 3 4 5 1 chunk +103 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_connection_delegate.cc View 1 chunk +25 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_connection_delegate_factory.h View 1 chunk +47 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_connection_delegate_factory.cc View 1 chunk +60 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_event_router.h View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_event_router.cc View 1 2 3 4 5 1 chunk +100 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_event_router_factory.h View 1 chunk +48 lines, -0 lines 0 comments Download
A extensions/browser/api/display_source/display_source_event_router_factory.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M extensions/browser/browser_context_keyed_service_factories.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/extension_event_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A extensions/common/api/display_source.idl View 1 2 3 4 1 chunk +152 lines, -0 lines 0 comments Download
M extensions/common/api/schemas.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/extensions_api_permissions.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/extensions_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/test/data/api_test/display_source/api/background.js View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A extensions/test/data/api_test/display_source/api/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
Mikhail
PTAL
5 years, 1 month ago (2015-10-30 16:33:36 UTC) #3
Finnur
Devlin is more appropriate for new extension APIs, as I haven't been doing much extensions ...
5 years, 1 month ago (2015-11-02 11:31:29 UTC) #5
Finnur
Retrying: now with Devlin's Chromium account...
5 years, 1 month ago (2015-11-02 11:33:30 UTC) #7
Devlin
My review load's pretty full, so I'm gonna ask Antony to take this one.
5 years, 1 month ago (2015-11-02 22:32:15 UTC) #9
Mikhail
gentle ping for review
5 years, 1 month ago (2015-11-06 09:09:10 UTC) #10
Mikhail
On 2015/11/06 09:09:10, Mikhail wrote: > gentle ping for review CC'd more owners
5 years, 1 month ago (2015-11-10 07:04:10 UTC) #11
Reilly Grant (use Gerrit)
This isn't a full review but I have some minor comments. https://codereview.chromium.org/1410093008/diff/20001/extensions/browser/api/display_source/display_source_apitest.cc File extensions/browser/api/display_source/display_source_apitest.cc (right): ...
5 years, 1 month ago (2015-11-10 18:51:34 UTC) #13
Mikhail
Thanks for having a look! https://codereview.chromium.org/1410093008/diff/20001/extensions/browser/api/display_source/display_source_apitest.cc File extensions/browser/api/display_source/display_source_apitest.cc (right): https://codereview.chromium.org/1410093008/diff/20001/extensions/browser/api/display_source/display_source_apitest.cc#newcode18 extensions/browser/api/display_source/display_source_apitest.cc:18: api::display_source::SinkState state = On ...
5 years, 1 month ago (2015-11-11 13:36:04 UTC) #14
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1410093008/diff/20001/extensions/common/api/display_source.idl File extensions/common/api/display_source.idl (right): https://codereview.chromium.org/1410093008/diff/20001/extensions/common/api/display_source.idl#newcode58 extensions/common/api/display_source.idl:58: DOMString method; On 2015/11/11 13:36:04, Mikhail wrote: > On ...
5 years, 1 month ago (2015-11-11 18:36:13 UTC) #15
Mikhail
On 2015/11/11 18:36:13, Reilly Grant wrote: > https://codereview.chromium.org/1410093008/diff/20001/extensions/common/api/display_source.idl > File extensions/common/api/display_source.idl (right): > > https://codereview.chromium.org/1410093008/diff/20001/extensions/common/api/display_source.idl#newcode58 ...
5 years, 1 month ago (2015-11-12 10:34:17 UTC) #17
asargent_no_longer_on_chrome
Sorry for delay in reviewing - here are a couple of minor things to fix ...
5 years, 1 month ago (2015-11-14 00:53:33 UTC) #18
Mikhail
Thank you for your comments https://codereview.chromium.org/1410093008/diff/80001/extensions/browser/api/display_source/OWNERS File extensions/browser/api/display_source/OWNERS (right): https://codereview.chromium.org/1410093008/diff/80001/extensions/browser/api/display_source/OWNERS#newcode1 extensions/browser/api/display_source/OWNERS:1: alexander.shalamov@intel.com On 2015/11/14 00:53:32, ...
5 years, 1 month ago (2015-11-16 14:22:24 UTC) #20
asargent_no_longer_on_chrome
https://codereview.chromium.org/1410093008/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410093008/diff/120001/chrome/app/generated_resources.grd#newcode4219 chrome/app/generated_resources.grd:4219: + Manage Wi-Fi display connections I fear that this ...
5 years, 1 month ago (2015-11-17 00:51:56 UTC) #21
Mikhail
https://codereview.chromium.org/1410093008/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1410093008/diff/120001/chrome/app/generated_resources.grd#newcode4219 chrome/app/generated_resources.grd:4219: + Manage Wi-Fi display connections On 2015/11/17 00:51:55, Antony ...
5 years, 1 month ago (2015-11-17 14:07:43 UTC) #22
asargent_no_longer_on_chrome
lgtm
5 years, 1 month ago (2015-11-17 23:29:20 UTC) #23
Mikhail
** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: extensions/browser/extension_event_histogram_value.h extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml ...
5 years, 1 month ago (2015-11-18 06:59:35 UTC) #24
Ilya Sherman
metrics lgtm
5 years, 1 month ago (2015-11-18 07:11:20 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410093008/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410093008/140001
5 years, 1 month ago (2015-11-18 07:13:18 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 1 month ago (2015-11-18 07:18:37 UTC) #29
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 07:19:39 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d19c83ee78b525d98a33f9fb320fcfffd1535206
Cr-Commit-Position: refs/heads/master@{#360299}

Powered by Google App Engine
This is Rietveld 408576698