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

Issue 265773010: Add initial support for [Exposed=xx] extended IDL attribute (Closed)

Created:
6 years, 7 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, tzik, eae+blinkwatch, adamk+blink_chromium.org, kinuko+watch, aandrey+blink_chromium.org, rwlbuis, jsbell+serviceworker_chromium.org, arv+blink, marja+watch_chromium.org, blink-reviews-html_chromium.org, abarth-chromium, blink-reviews-dom_chromium.org, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, sof, nhiroki, kinuko, haraken, Nate Chapin, alecflett+watch_chromium.org, jsbell+bindings_chromium.org, serviceworker-reviews, kouhei+bindings_chromium.org, falken, blink-reviews-events_chromium.org, horo+watch_chromium.org, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

Add initial support for [Exposed=xx] extended IDL attribute Add initial support for [Exposed=xx] extended IDL attribute: http://heycam.github.io/webidl/#Exposed This is adapted from our existing Blink-specific [GlobalContext=xx] IDL extended attribute as the functionality is identical (select on which global interface the interface is exposed). There are 2 remaining issues that I am planning to address later on: - The mapping between global identifiers and global IDL interfaces is currently manual but is supposed to rely on [Global] / [PrimaryGlobal] attributes instead, which we do not support yet. - The values are still separated by '&' instead of ',' as per Web IDL specification. Having comma-separated values here confuses the parser as extended IDL attributes are already comma-separated. I was not able to add support for this in the Blink IDL lexer yet. (Nils: using commas to separate makes parsing *very* hard, and I don't think it's worth supporting.) There is no web-exposed behavior change. This change just makes our Blink IDL more standard. R=haraken@chromium.org, nbarth@chromium.org BUG=369115 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173168

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -33 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/generate_global_constructors.py View 1 3 chunks +16 lines, -3 lines 0 comments Download
M Source/core/dom/MessageChannel.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Promise.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/URL.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/MessageEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/Blob.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/File.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/FileReader.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/FileReaderSync.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/FormData.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/ImageData.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/DataView.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/EventSource.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/DedicatedWorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/SharedWorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerLocation.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerNavigator.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encoding/TextDecoder.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encoding/TextEncoder.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Cache.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Client.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/FetchEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/InstallEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/InstallPhaseEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Response.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerClients.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/WebSocket.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
Any help to get the comma-separated values to work in Extended Attribute values would be ...
6 years, 7 months ago (2014-05-02 00:55:10 UTC) #1
haraken
LGTM
6 years, 7 months ago (2014-05-02 01:23:29 UTC) #2
Nils Barth (inactive)
On 2014/05/02 00:55:10, Chris Dumez wrote: > Any help to get the comma-separated values to ...
6 years, 7 months ago (2014-05-02 02:43:55 UTC) #3
Nils Barth (inactive)
LGTM, thanks! https://codereview.chromium.org/265773010/diff/1/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/265773010/diff/1/Source/bindings/scripts/generate_global_constructors.py#newcode53 Source/bindings/scripts/generate_global_constructors.py:53: # FIXME: We should add support for ...
6 years, 7 months ago (2014-05-02 02:49:48 UTC) #4
Inactive
On 2014/05/02 02:43:55, Nils Barth wrote: > On 2014/05/02 00:55:10, Chris Dumez wrote: > > ...
6 years, 7 months ago (2014-05-02 03:04:06 UTC) #5
Inactive
https://codereview.chromium.org/265773010/diff/1/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/265773010/diff/1/Source/bindings/scripts/generate_global_constructors.py#newcode53 Source/bindings/scripts/generate_global_constructors.py:53: # FIXME: We should add support for [Global=xx] extended ...
6 years, 7 months ago (2014-05-02 03:08:36 UTC) #6
Nils Barth (inactive)
On 2014/05/02 03:04:06, Chris Dumez wrote: > Do you mind if I keep using '&' ...
6 years, 7 months ago (2014-05-02 03:08:38 UTC) #7
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-02 03:11:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/265773010/20001
6 years, 7 months ago (2014-05-02 03:11:53 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 04:11:50 UTC) #10
Message was sent while issue was closed.
Change committed as 173168

Powered by Google App Engine
This is Rietveld 408576698