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

Unified Diff: third_party/WebKit/Source/bindings/templates/attributes.cpp

Issue 1685393002: [Experimental Framework] Rename IDL attribute to OriginTrialEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change existing usage of APIExperimentEnabled Created 4 years, 10 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/attributes.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/attributes.cpp b/third_party/WebKit/Source/bindings/templates/attributes.cpp
index 190b3a571a2bd4c74133b8f87bb8c4a6d70c84da..2cce9c177129024bd90986a72b99444c418212cf 100644
--- a/third_party/WebKit/Source/bindings/templates/attributes.cpp
+++ b/third_party/WebKit/Source/bindings/templates/attributes.cpp
@@ -1,4 +1,4 @@
-{% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_local_cpp_value, check_api_experiment %}
+{% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_local_cpp_value, check_origin_trial %}
{##############################################################################}
{% macro attribute_getter(attribute, world_suffix) %}
@@ -9,8 +9,8 @@ const v8::PropertyCallbackInfo<v8::Value>& info
const v8::FunctionCallbackInfo<v8::Value>& info
{%- endif %})
{
- {% if attribute.is_api_experiment_enabled %}
- {{check_api_experiment(attribute) | indent}}
+ {% if attribute.is_origin_trial_enabled %}
+ {{check_origin_trial(attribute) | indent}}
{% endif %}
{% if attribute.is_reflect and not attribute.is_url
and attribute.idl_type == 'DOMString' and is_node
@@ -176,8 +176,8 @@ const v8::FunctionCallbackInfo<v8::Value>& info
{% if attribute.measure_as %}
UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as('AttributeGetter')}});
{% endif %}
- {% if attribute.is_api_experiment_enabled %}
- {{check_api_experiment(attribute) | indent}}
+ {% if attribute.is_origin_trial_enabled %}
+ {{check_origin_trial(attribute) | indent}}
{% endif %}
{% if world_suffix in attribute.activity_logging_world_list_for_getter %}
ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentContext());
@@ -208,8 +208,8 @@ static void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Loca
{% if attribute.measure_as %}
UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as('ConstructorGetter')}});
{% endif %}
- {% if attribute.is_api_experiment_enabled %}
- {{check_api_experiment(attribute) | indent}}
+ {% if attribute.is_origin_trial_enabled %}
+ {{check_origin_trial(attribute) | indent}}
{% endif %}
v8ConstructorAttributeGetter(property, info);
}
@@ -410,8 +410,8 @@ bool {{v8_class}}::PrivateScript::{{attribute.name}}AttributeGetter(LocalFrame*
if (holder.IsEmpty())
return false;
- {% if attribute.is_api_experiment_enabled %}
- {{check_api_experiment(attribute, "scriptState->isolate()") | indent}}
+ {% if attribute.is_origin_trial_enabled %}
+ {{check_origin_trial(attribute, "scriptState->isolate()") | indent}}
{% endif %}
ExceptionState exceptionState(ExceptionState::GetterContext, "{{attribute.name}}", "{{cpp_class}}", scriptState->context()->Global(), scriptState->isolate());
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_utilities.py ('k') | third_party/WebKit/Source/bindings/templates/constants.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698