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

Issue 9323028: Support 'Conditional' idl attribute. (Closed)

Created:
8 years, 10 months ago by podivilov
Modified:
8 years, 10 months ago
Reviewers:
sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support 'Conditional' idl attribute. 'Conditional' attribute is a replacement for "#if defined" conditions and should be processed accordingly. R=sra@google.com Committed: https://code.google.com/p/dart/source/detail?r=3939

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1711 lines) Patch
M client/dom/dom.dart View 14 chunks +0 lines, -22 lines 0 comments Download
M client/dom/dom_frog.dart View 14 chunks +0 lines, -22 lines 0 comments Download
D client/dom/generated/src/frog/HTMLContentElement.dart View 1 chunk +0 lines, -7 lines 0 comments Download
D client/dom/generated/src/frog/HTMLDataListElement.dart View 1 chunk +0 lines, -5 lines 0 comments Download
M client/dom/generated/src/frog/HTMLElement.dart View 1 chunk +0 lines, -18 lines 0 comments Download
M client/dom/generated/src/frog/HTMLInputElement.dart View 2 chunks +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/frog/HTMLPropertiesCollection.dart View 1 chunk +0 lines, -7 lines 0 comments Download
M client/dom/generated/src/frog/HTMLStyleElement.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/frog/InjectedScriptHost.dart View 1 chunk +0 lines, -31 lines 0 comments Download
D client/dom/generated/src/frog/InspectorFrontendHost.dart View 1 chunk +0 lines, -51 lines 0 comments Download
M client/dom/generated/src/frog/MouseEvent.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/frog/MutationCallback.dart View 1 chunk +0 lines, -3 lines 0 comments Download
D client/dom/generated/src/frog/MutationRecord.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D client/dom/generated/src/frog/PointerLock.dart View 1 chunk +0 lines, -9 lines 0 comments Download
D client/dom/generated/src/frog/ShadowRoot.dart View 1 chunk +0 lines, -5 lines 0 comments Download
D client/dom/generated/src/frog/WebKitCSSFilterValue.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D client/dom/generated/src/frog/WebKitMutationObserver.dart View 1 chunk +0 lines, -5 lines 0 comments Download
D client/dom/generated/src/interface/HTMLContentElement.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D client/dom/generated/src/interface/HTMLDataListElement.dart View 1 chunk +0 lines, -10 lines 0 comments Download
M client/dom/generated/src/interface/HTMLElement.dart View 1 chunk +0 lines, -18 lines 0 comments Download
M client/dom/generated/src/interface/HTMLInputElement.dart View 2 chunks +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/interface/HTMLPropertiesCollection.dart View 1 chunk +0 lines, -12 lines 0 comments Download
M client/dom/generated/src/interface/HTMLStyleElement.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/interface/InjectedScriptHost.dart View 1 chunk +0 lines, -36 lines 0 comments Download
D client/dom/generated/src/interface/InspectorFrontendHost.dart View 1 chunk +0 lines, -56 lines 0 comments Download
M client/dom/generated/src/interface/MouseEvent.dart View 1 chunk +0 lines, -4 lines 0 comments Download
D client/dom/generated/src/interface/MutationCallback.dart View 1 chunk +0 lines, -8 lines 0 comments Download
D client/dom/generated/src/interface/MutationRecord.dart View 1 chunk +0 lines, -26 lines 0 comments Download
D client/dom/generated/src/interface/PointerLock.dart View 1 chunk +0 lines, -14 lines 0 comments Download
D client/dom/generated/src/interface/ShadowRoot.dart View 1 chunk +0 lines, -10 lines 0 comments Download
D client/dom/generated/src/interface/WebKitCSSFilterValue.dart View 1 chunk +0 lines, -32 lines 0 comments Download
D client/dom/generated/src/interface/WebKitMutationObserver.dart View 1 chunk +0 lines, -10 lines 0 comments Download
D client/dom/generated/src/wrapping/_HTMLContentElementWrappingImplementation.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D client/dom/generated/src/wrapping/_HTMLDataListElementWrappingImplementation.dart View 1 chunk +0 lines, -18 lines 0 comments Download
M client/dom/generated/src/wrapping/_HTMLElementWrappingImplementation.dart View 1 chunk +0 lines, -27 lines 0 comments Download
M client/dom/generated/src/wrapping/_HTMLInputElementWrappingImplementation.dart View 2 chunks +0 lines, -6 lines 0 comments Download
D client/dom/generated/src/wrapping/_HTMLPropertiesCollectionWrappingImplementation.dart View 1 chunk +0 lines, -23 lines 0 comments Download
M client/dom/generated/src/wrapping/_HTMLStyleElementWrappingImplementation.dart View 1 chunk +0 lines, -6 lines 0 comments Download
D client/dom/generated/src/wrapping/_InjectedScriptHostWrappingImplementation.dart View 1 chunk +0 lines, -90 lines 0 comments Download
D client/dom/generated/src/wrapping/_InspectorFrontendHostWrappingImplementation.dart View 1 chunk +0 lines, -153 lines 0 comments Download
M client/dom/generated/src/wrapping/_MouseEventWrappingImplementation.dart View 1 chunk +0 lines, -6 lines 0 comments Download
D client/dom/generated/src/wrapping/_MutationCallbackWrappingImplementation.dart View 1 chunk +0 lines, -15 lines 0 comments Download
D client/dom/generated/src/wrapping/_MutationRecordWrappingImplementation.dart View 1 chunk +0 lines, -42 lines 0 comments Download
D client/dom/generated/src/wrapping/_PointerLockWrappingImplementation.dart View 1 chunk +0 lines, -45 lines 0 comments Download
D client/dom/generated/src/wrapping/_ShadowRootWrappingImplementation.dart View 1 chunk +0 lines, -18 lines 0 comments Download
D client/dom/generated/src/wrapping/_WebKitCSSFilterValueWrappingImplementation.dart View 1 chunk +0 lines, -18 lines 0 comments Download
D client/dom/generated/src/wrapping/_WebKitMutationObserverWrappingImplementation.dart View 1 chunk +0 lines, -21 lines 0 comments Download
M client/dom/generated/wrapping_dom.js View 21 chunks +0 lines, -611 lines 0 comments Download
M client/dom/generated/wrapping_dom_externs.js View 39 chunks +16 lines, -66 lines 0 comments Download
M client/dom/scripts/databasebuilder.py View 1 chunk +31 lines, -2 lines 4 comments Download
M client/dom/wrapping_dom.dart View 14 chunks +0 lines, -22 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
podivilov
8 years, 10 months ago (2012-02-03 09:58:05 UTC) #1
sra1
lgtm https://chromiumcodereview.appspot.com/9323028/diff/1/client/dom/scripts/databasebuilder.py File client/dom/scripts/databasebuilder.py (right): https://chromiumcodereview.appspot.com/9323028/diff/1/client/dom/scripts/databasebuilder.py#newcode492 client/dom/scripts/databasebuilder.py:492: if self._is_node_enabled(attribute, import_options.idl_defines)] you might define a local ...
8 years, 10 months ago (2012-02-03 20:53:56 UTC) #2
podivilov
Thanks! http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuilder.py File client/dom/scripts/databasebuilder.py (right): http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuilder.py#newcode492 client/dom/scripts/databasebuilder.py:492: if self._is_node_enabled(attribute, import_options.idl_defines)] On 2012/02/03 20:53:56, sra1 wrote: ...
8 years, 10 months ago (2012-02-06 12:09:40 UTC) #3
sra1
On 2012/02/06 12:09:40, podivilov wrote: > Thanks! > > http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuilder.py > File client/dom/scripts/databasebuilder.py (right): > ...
8 years, 10 months ago (2012-02-06 20:18:00 UTC) #4
podivilov
8 years, 10 months ago (2012-02-07 12:31:18 UTC) #5
On 2012/02/06 20:18:00, sra1 wrote:
> On 2012/02/06 12:09:40, podivilov wrote:
> > Thanks!
> > 
> >
>
http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuil...
> > File client/dom/scripts/databasebuilder.py (right):
> > 
> >
>
http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuil...
> > client/dom/scripts/databasebuilder.py:492: if
self._is_node_enabled(attribute,
> > import_options.idl_defines)]
> > On 2012/02/03 20:53:56, sra1 wrote:
> > > you might define a local function and use filter:
> > > 
> > > @line 482
> > > def enabled(idl_node):
> > >   return self._is_enabled(idl_node, import_options.idl_defines
> > > 
> > > 
> > >         interface.attributes = filter(enabled, interface.attributes)
> > 
> > Done.
> > 
> >
>
http://codereview.chromium.org/9323028/diff/1/client/dom/scripts/databasebuil...
> > client/dom/scripts/databasebuilder.py:509: for condition in
> > conditional.split('&'):
> > On 2012/02/03 20:53:56, sra1 wrote:
> > > can & and | occur together?
> > 
> > AFAIK they could not, and webkit code generators don't support it.
> 
> Do you know why HTMLContentElement was deleted?
> It is conditional on SHADOW_DOM.
> Is it just an omission, or is there some reason to exclude shadow dom?

I believe that chrome is now built with SHADOW_DOM enabled, so we can add it to
webkit_defines list in fremontcutbuilder.py.

Powered by Google App Engine
This is Rietveld 408576698