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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.h.tmpl

Issue 1538663003: Add code generation for ExperimentalFeatures class from RuntimeEnabledFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken GN build dependency Created 5 years 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
OLDNEW
(Empty)
1 {% from 'macros.tmpl' import license %}
2 {{license()}}
3
4 #ifndef ExperimentalFeatures_h
5 #define ExperimentalFeatures_h
6
7 #include "core/CoreExport.h"
8 #include "wtf/text/WTFString.h"
9
10 namespace blink {
11
12 class ExecutionContext;
13
14 // A class that stores dynamic tests for experimental features which can be
15 // enabled through the experimental framwork via API keys.
16
17 class CORE_EXPORT ExperimentalFeatures {
18 public:
19 {% for feature in features %}
20 {% if feature.api_name %}
21 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio nContext, String& errorMessage);
22 {% endif %}
23 {% endfor %}
24
25 private:
26 ExperimentalFeatures() { }
27 };
28
29 } // namespace blink
30
31 #endif // ExperimentalFeatures_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698