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

Unified Diff: third_party/WebKit/Source/bindings/templates/interface.h

Issue 2005433002: [Origin Trials] Install origin trial bindings on V8 context conditionally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-ef-install
Patch Set: Fix multiple definition of signature; addressing nits Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/interface.h
diff --git a/third_party/WebKit/Source/bindings/templates/interface.h b/third_party/WebKit/Source/bindings/templates/interface.h
index 36a48b77af2aef6585b9dec94cae274ea3f9094f..a8b4c08e55c7f6ce015747d08fb4779472ca42a7 100644
--- a/third_party/WebKit/Source/bindings/templates/interface.h
+++ b/third_party/WebKit/Source/bindings/templates/interface.h
@@ -11,6 +11,9 @@ namespace blink {
{% if has_event_constructor %}
class Dictionary;
{% endif %}
+{% if attributes|origin_trial_enabled_attributes %}
+class ScriptState;
+{% endif %}
{% if named_constructor %}
class {{v8_class}}Constructor {
STATIC_ONLY({{v8_class}}Constructor);
@@ -165,6 +168,9 @@ public:
{{exported}}static void register{{method.name | blink_capitalize}}MethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
{% endfor %}
{% endif %}
+ {% for group in attributes|origin_trial_enabled_attributes|groupby('origin_trial_feature_name') %}{{newline}}
+ static void install{{group.grouper}}(ScriptState*, v8::Local<v8::Object> instance);
+ {% endfor %}
{% if has_partial_interface %}
private:

Powered by Google App Engine
This is Rietveld 408576698