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

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

Issue 2090773005: [OriginTrials] Raise an exception at compile time for OT-enabled methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add note about support in IDLExtendedAttributes.md Created 4 years, 6 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/scripts/v8_methods.py » ('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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 OriginTrialEnabled=MediaSession 1044 OriginTrialEnabled=MediaSession
1045 ] interface MediaSession { ... }; 1045 ] interface MediaSession { ... };
1046 ``` 1046 ```
1047 1047
1048 When there is an active origin trial for the current execution context, the feat ure is enabled at runtime, and the binding would be exposed to the web. `[Origin TrialEnabled]` also includes a check for the associated runtime flag, so feature s can be enabled in that fashion, even without an origin trial. 1048 When there is an active origin trial for the current execution context, the feat ure is enabled at runtime, and the binding would be exposed to the web. `[Origin TrialEnabled]` also includes a check for the associated runtime flag, so feature s can be enabled in that fashion, even without an origin trial.
1049 1049
1050 `[OriginTrialEnabled]` has similar semantics to `[RuntimeEnabled]`, and is inten ded as a drop-in replacement. For example, `[OriginTrialEnabled]` _cannot_ be ap plied to arguments, see `[RuntimeEnabled]` for reasoning. The key implementation difference is that `[OriginTrialEnabled]` wraps the generated code with `if (Or iginTrials::FeatureNameEnabled(...)) { ...code... }`. 1050 `[OriginTrialEnabled]` has similar semantics to `[RuntimeEnabled]`, and is inten ded as a drop-in replacement. For example, `[OriginTrialEnabled]` _cannot_ be ap plied to arguments, see `[RuntimeEnabled]` for reasoning. The key implementation difference is that `[OriginTrialEnabled]` wraps the generated code with `if (Or iginTrials::FeatureNameEnabled(...)) { ...code... }`.
1051 1051
1052 For more information, see [RuntimeEnabledFeatures](https://code.google.com/p/chr omium/codesearch#chromium/src/third_party/WebKit/Source/platform/RuntimeEnabledF eatures.in) and [OriginTrialContext](https://code.google.com/p/chromium/codesear ch#chromium/src/third_party/WebKit/Source/core/origin_trials/OriginTrialContext. h). 1052 For more information, see [RuntimeEnabledFeatures](https://code.google.com/p/chr omium/codesearch#chromium/src/third_party/WebKit/Source/platform/RuntimeEnabledF eatures.in) and [OriginTrialContext](https://code.google.com/p/chromium/codesear ch#chromium/src/third_party/WebKit/Source/core/origin_trials/OriginTrialContext. h).
1053 1053
1054 *** note
1055 **FIXME:** Currently, `[OriginTrialEnabled]` can only be applied to interfaces, attributes, and constants. Methods (including those generated by `iterable`, `se tlike`, `maplike`, `serializer` and `stringifier`) are not supported. See [Bug 6 21641](https://crbug.com/621641).
1056 ***
1057
1054 ### [PostMessage] _(m)_ 1058 ### [PostMessage] _(m)_
1055 1059
1056 Summary: Tells the code generator to generate postMessage method used in Workers , Service Workers etc. 1060 Summary: Tells the code generator to generate postMessage method used in Workers , Service Workers etc.
1057 1061
1058 Usage: `[PostMessage]` can be specified on methods 1062 Usage: `[PostMessage]` can be specified on methods
1059 1063
1060 ```webidl 1064 ```webidl
1061 [PostMessage] void postMessage(any message, optional sequence<Transferable> tran sfer); 1065 [PostMessage] void postMessage(any message, optional sequence<Transferable> tran sfer);
1062 ``` 1066 ```
1063 1067
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 Copyright (C) 2009 Apple Inc. All rights reserved. 1580 Copyright (C) 2009 Apple Inc. All rights reserved.
1577 1581
1578 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1582 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1579 1583
1580 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer. 1584 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer.
1581 1585
1582 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. 1586 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.
1583 1587
1584 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. 1588 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.
1585 *** 1589 ***
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698