|
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
Total comments: 4
|
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
|
Total messages: 10 (0 generated)
|