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

Side by Side Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Blink IDL Extended Attributes 1 # Blink IDL Extended Attributes
2 2
3 [TOC] 3 [TOC]
4 4
5 ## Introduction 5 ## Introduction
6 6
7 The main interest in extended attributes are their _semantics_: Blink implements many more extended attributes than the Web IDL standard, to specify various beh avior. 7 The main interest in extended attributes are their _semantics_: Blink implements many more extended attributes than the Web IDL standard, to specify various beh avior.
8 8
9 The authoritative list of allowed extended attributes and values is [bindings/ID LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/ src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl ete but not necessarily precise (there may be unused extended attributes or valu es), since validation is run on build, but coverage isn't checked. 9 The authoritative list of allowed extended attributes and values is [bindings/ID LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/ src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl ete but not necessarily precise (there may be unused extended attributes or valu es), since validation is run on build, but coverage isn't checked.
10 10
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 Usage: `[DeprecateAs]` can be specified on methods, attributes, and constants. 916 Usage: `[DeprecateAs]` can be specified on methods, attributes, and constants.
917 917
918 ```webidl 918 ```webidl
919 [DeprecateAs=DeprecatedPrefixedAttribute] attribute Node prefixedAttribute; 919 [DeprecateAs=DeprecatedPrefixedAttribute] attribute Node prefixedAttribute;
920 [DeprecateAs=DeprecatedPrefixedMethod] Node prefixedGetInterestingNode(); 920 [DeprecateAs=DeprecatedPrefixedMethod] Node prefixedGetInterestingNode();
921 [DeprecateAs=DeprecatedPrefixedConstant] const short DEPRECATED_PREFIXED_CON STANT = 1; 921 [DeprecateAs=DeprecatedPrefixedConstant] const short DEPRECATED_PREFIXED_CON STANT = 1;
922 ``` 922 ```
923 923
924 The deprecation message show on the console can be specified via the [UseCounter ::deprecationMessage](https://code.google.com/p/chromium/codesearch#chromium/src /third_party/WebKit/Source/core/frame/UseCounter.cpp&q=UseCounter::deprecationMe ssage&l=615) method. 924 The deprecation message show on the console can be specified via the [UseCounter ::deprecationMessage](https://code.google.com/p/chromium/codesearch#chromium/src /third_party/WebKit/Source/core/frame/UseCounter.cpp&q=UseCounter::deprecationMe ssage&l=615) method.
925 925
926 ### [GarbageCollected] _(i)_
927
928 Summary: The `[GarbageCollected]` attribute signals that the object is kept on t he Oilpan heap and handled by its garbage collector.
929
930 Usage: `[GarbageCollected]` can be specified on interfaces, and is inherited:
931
932 ```webidl
933 [
934 GarbageCollected,
935 ] interface BatteryManager { ... };
936 ```
937
938 In order to generate correct binding layer code for an interface, `[GarbageColle cted]` must be supplied if the object is an Oilpan-based object.
939
940
941 ### [Iterable] _(i)_ 926 ### [Iterable] _(i)_
942 927
943 Summary: Installs a @@iterator method. 928 Summary: Installs a @@iterator method.
944 929
945 *** note 930 *** note
946 In most cases, interfaces should use the standard `iterator<valuetype>`, `iterat or<keytype,valuetype>`, `setlike<type>`, or `maplike<keytype, valuetype>` IDL de clarations instead. `[Iterable]` should only be necessary for the implementation of iterators themselves. 931 In most cases, interfaces should use the standard `iterator<valuetype>`, `iterat or<keytype,valuetype>`, `setlike<type>`, or `maplike<keytype, valuetype>` IDL de clarations instead. `[Iterable]` should only be necessary for the implementation of iterators themselves.
947 *** 932 ***
948 933
949 When the attribute is set on an interface, the code generator installs iterator C++ method into [Symbol.iterator] slot. 934 When the attribute is set on an interface, the code generator installs iterator C++ method into [Symbol.iterator] slot.
950 935
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 Copyright (C) 2009 Apple Inc. All rights reserved. 1549 Copyright (C) 2009 Apple Inc. All rights reserved.
1565 1550
1566 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1551 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1567 1552
1568 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer. 1553 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer.
1569 1554
1570 2. Redistributions in binary form must reproduce the above copyright notice, thi s list of conditions and the following disclaimer in the documentation and/or ot her materials provided with the distribution. 1555 2. Redistributions in binary form must reproduce the above copyright notice, thi s list of conditions and the following disclaimer in the documentation and/or ot her materials provided with the distribution.
1571 1556
1572 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI BILITY OF SUCH DAMAGE. 1557 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI BILITY OF SUCH DAMAGE.
1573 *** 1558 ***
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698