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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1861433002: Make [OriginTrialEnabled] and [RuntimeEnabled] mutually exclusive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@586594-separate-tests
Patch Set: Correct IDL for Web Bluetooth 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "V8TestObject.h" 7 #include "V8TestObject.h"
8 8
9 #include "bindings/core/v8/BindingSecurity.h" 9 #include "bindings/core/v8/BindingSecurity.h"
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info) 103 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info)
104 { 104 {
105 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::Constant); 105 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionConte xt(info.GetIsolate()), UseCounter::Constant);
106 v8SetReturnValueInt(info, 1); 106 v8SetReturnValueInt(info, 1);
107 } 107 }
108 108
109 static void FEATURE1_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 109 static void FEATURE1_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
110 { 110 {
111 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 111 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
112 String memberErrorMessage; 112 String errorMessage;
113 if (!OriginTrials::featureName1Enabled(executionContext, memberErrorMessage) ) { 113 if (!OriginTrials::featureName1Enabled(executionContext, errorMessage)) {
114 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 114 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
115 if (!memberErrorMessage.isEmpty()) { 115 if (!errorMessage.isEmpty()) {
116 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 116 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
117 } 117 }
118 return; 118 return;
119 } 119 }
120 v8SetReturnValueInt(info, 1); 120 v8SetReturnValueInt(info, 1);
121 } 121 }
122 122
123 static void FEATURE1_ORIGIN_TRIAL_ENABLED_CONST2ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 123 static void FEATURE1_ORIGIN_TRIAL_ENABLED_CONST2ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
124 { 124 {
125 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 125 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
126 String memberErrorMessage; 126 String errorMessage;
127 if (!OriginTrials::featureName1Enabled(executionContext, memberErrorMessage) ) { 127 if (!OriginTrials::featureName1Enabled(executionContext, errorMessage)) {
128 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 128 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
129 if (!memberErrorMessage.isEmpty()) { 129 if (!errorMessage.isEmpty()) {
130 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 130 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
131 } 131 }
132 return; 132 return;
133 } 133 }
134 v8SetReturnValueInt(info, 2); 134 v8SetReturnValueInt(info, 2);
135 } 135 }
136 136
137 static void FEATURE2_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 137 static void FEATURE2_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
138 { 138 {
139 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 139 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
140 String memberErrorMessage; 140 String errorMessage;
141 if (!OriginTrials::featureName2Enabled(executionContext, memberErrorMessage) ) { 141 if (!OriginTrials::featureName2Enabled(executionContext, errorMessage)) {
142 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 142 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
143 if (!memberErrorMessage.isEmpty()) { 143 if (!errorMessage.isEmpty()) {
144 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 144 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
145 } 145 }
146 return; 146 return;
147 } 147 }
148 v8SetReturnValueInt(info, 3); 148 v8SetReturnValueInt(info, 3);
149 } 149 }
150 150
151 static void FEATURE2_ORIGIN_TRIAL_ENABLED_CONST2ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 151 static void FEATURE2_ORIGIN_TRIAL_ENABLED_CONST2ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
152 { 152 {
153 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 153 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
154 String memberErrorMessage; 154 String errorMessage;
155 if (!OriginTrials::featureName2Enabled(executionContext, memberErrorMessage) ) { 155 if (!OriginTrials::featureName2Enabled(executionContext, errorMessage)) {
156 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 156 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
157 if (!memberErrorMessage.isEmpty()) { 157 if (!errorMessage.isEmpty()) {
158 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 158 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
159 } 159 }
160 return; 160 return;
161 } 161 }
162 v8SetReturnValueInt(info, 4); 162 v8SetReturnValueInt(info, 4);
163 } 163 }
164 164
165 static void FEATURE3_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 165 static void FEATURE3_ORIGIN_TRIAL_ENABLED_CONST1ConstantGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
166 { 166 {
167 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 167 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
168 String memberErrorMessage; 168 String errorMessage;
169 if (!OriginTrials::featureName3Enabled(executionContext, memberErrorMessage) ) { 169 if (!OriginTrials::featureName3Enabled(executionContext, errorMessage)) {
170 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 170 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
171 if (!memberErrorMessage.isEmpty()) { 171 if (!errorMessage.isEmpty()) {
172 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 172 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
173 } 173 }
174 return; 174 return;
175 } 175 }
176 v8SetReturnValueInt(info, 5); 176 v8SetReturnValueInt(info, 5);
177 } 177 }
178 178
179 template<class CallbackInfo> 179 template<class CallbackInfo>
180 static bool TestObjectCreateDataProperty(v8::Local<v8::Name> name, v8::Local<v8: :Value> v8Value, const CallbackInfo& info) 180 static bool TestObjectCreateDataProperty(v8::Local<v8::Name> name, v8::Local<v8: :Value> v8Value, const CallbackInfo& info)
181 { 181 {
182 ASSERT(info.This()->IsObject()); 182 ASSERT(info.This()->IsObject());
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2636 2636
2637 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2637 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2638 { 2638 {
2639 v8::Local<v8::Value> v8Value = info[0]; 2639 v8::Local<v8::Value> v8Value = info[0];
2640 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2640 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2641 } 2641 }
2642 2642
2643 static void originTrialEnabledLongAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 2643 static void originTrialEnabledLongAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
2644 { 2644 {
2645 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2645 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2646 String memberErrorMessage; 2646 String errorMessage;
2647 if (!OriginTrials::featureNameEnabled(executionContext, memberErrorMessage)) { 2647 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
2648 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 2648 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
2649 if (!memberErrorMessage.isEmpty()) { 2649 if (!errorMessage.isEmpty()) {
2650 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 2650 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
2651 } 2651 }
2652 return; 2652 return;
2653 } 2653 }
2654 v8::Local<v8::Object> holder = info.Holder(); 2654 v8::Local<v8::Object> holder = info.Holder();
2655 TestObject* impl = V8TestObject::toImpl(holder); 2655 TestObject* impl = V8TestObject::toImpl(holder);
2656 v8SetReturnValueInt(info, impl->originTrialEnabledLongAttribute()); 2656 v8SetReturnValueInt(info, impl->originTrialEnabledLongAttribute());
2657 } 2657 }
2658 2658
2659 static void originTrialEnabledLongAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2659 static void originTrialEnabledLongAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2660 { 2660 {
2661 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2661 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2662 String memberErrorMessage; 2662 String errorMessage;
2663 if (!OriginTrials::featureNameEnabled(executionContext, memberErrorMessage)) { 2663 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
2664 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 2664 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
2665 if (!memberErrorMessage.isEmpty()) { 2665 if (!errorMessage.isEmpty()) {
2666 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 2666 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
2667 } 2667 }
2668 return; 2668 return;
2669 } 2669 }
2670 TestObjectV8Internal::originTrialEnabledLongAttributeAttributeGetter(info); 2670 TestObjectV8Internal::originTrialEnabledLongAttributeAttributeGetter(info);
2671 } 2671 }
2672 2672
2673 static void originTrialEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2673 static void originTrialEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2674 { 2674 {
2675 v8::Local<v8::Object> holder = info.Holder(); 2675 v8::Local<v8::Object> holder = info.Holder();
2676 ExceptionState exceptionState(ExceptionState::SetterContext, "originTrialEna bledLongAttribute", "TestObject", holder, info.GetIsolate()); 2676 ExceptionState exceptionState(ExceptionState::SetterContext, "originTrialEna bledLongAttribute", "TestObject", holder, info.GetIsolate());
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
4517 4517
4518 static void unscopeableLongAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 4518 static void unscopeableLongAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
4519 { 4519 {
4520 v8::Local<v8::Value> v8Value = info[0]; 4520 v8::Local<v8::Value> v8Value = info[0];
4521 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info) ; 4521 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info) ;
4522 } 4522 }
4523 4523
4524 static void unscopeableOriginTrialEnabledLongAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) 4524 static void unscopeableOriginTrialEnabledLongAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
4525 { 4525 {
4526 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4526 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4527 String memberErrorMessage; 4527 String errorMessage;
4528 if (!OriginTrials::featureNameEnabled(executionContext, memberErrorMessage)) { 4528 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
4529 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 4529 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
4530 if (!memberErrorMessage.isEmpty()) { 4530 if (!errorMessage.isEmpty()) {
4531 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 4531 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
4532 } 4532 }
4533 return; 4533 return;
4534 } 4534 }
4535 v8::Local<v8::Object> holder = info.Holder(); 4535 v8::Local<v8::Object> holder = info.Holder();
4536 TestObject* impl = V8TestObject::toImpl(holder); 4536 TestObject* impl = V8TestObject::toImpl(holder);
4537 v8SetReturnValueInt(info, impl->unscopeableOriginTrialEnabledLongAttribute() ); 4537 v8SetReturnValueInt(info, impl->unscopeableOriginTrialEnabledLongAttribute() );
4538 } 4538 }
4539 4539
4540 static void unscopeableOriginTrialEnabledLongAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 4540 static void unscopeableOriginTrialEnabledLongAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
4541 { 4541 {
4542 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4542 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4543 String memberErrorMessage; 4543 String errorMessage;
4544 if (!OriginTrials::featureNameEnabled(executionContext, memberErrorMessage)) { 4544 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
4545 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 4545 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
4546 if (!memberErrorMessage.isEmpty()) { 4546 if (!errorMessage.isEmpty()) {
4547 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 4547 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
4548 } 4548 }
4549 return; 4549 return;
4550 } 4550 }
4551 TestObjectV8Internal::unscopeableOriginTrialEnabledLongAttributeAttributeGet ter(info); 4551 TestObjectV8Internal::unscopeableOriginTrialEnabledLongAttributeAttributeGet ter(info);
4552 } 4552 }
4553 4553
4554 static void unscopeableOriginTrialEnabledLongAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4554 static void unscopeableOriginTrialEnabledLongAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4555 { 4555 {
4556 v8::Local<v8::Object> holder = info.Holder(); 4556 v8::Local<v8::Object> holder = info.Holder();
4557 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableOri ginTrialEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4557 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableOri ginTrialEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
(...skipping 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after
9732 9732
9733 static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 9733 static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
9734 { 9734 {
9735 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9735 TestObject* impl = V8TestObject::toImpl(info.Holder());
9736 impl->originTrialEnabledVoidMethod(); 9736 impl->originTrialEnabledVoidMethod();
9737 } 9737 }
9738 9738
9739 static void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 9739 static void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
9740 { 9740 {
9741 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 9741 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
9742 String memberErrorMessage; 9742 String errorMessage;
9743 if (!OriginTrials::featureName1Enabled(executionContext, memberErrorMessage) ) { 9743 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
9744 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 9744 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
9745 if (!memberErrorMessage.isEmpty()) { 9745 if (!errorMessage.isEmpty()) {
9746 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 9746 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
9747 } 9747 }
9748 return; 9748 return;
9749 } 9749 }
9750 TestObjectV8Internal::originTrialEnabledVoidMethodMethod(info); 9750 TestObjectV8Internal::originTrialEnabledVoidMethodMethod(info);
9751 } 9751 }
9752 9752
9753 static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 9753 static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
9754 { 9754 {
9755 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9755 TestObject* impl = V8TestObject::toImpl(info.Holder());
9756 impl->perWorldBindingsOriginTrialEnabledVoidMethod(); 9756 impl->perWorldBindingsOriginTrialEnabledVoidMethod();
9757 } 9757 }
9758 9758
9759 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 9759 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
9760 { 9760 {
9761 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 9761 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
9762 String memberErrorMessage; 9762 String errorMessage;
9763 if (!OriginTrials::featureName1Enabled(executionContext, memberErrorMessage) ) { 9763 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
9764 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 9764 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
9765 if (!memberErrorMessage.isEmpty()) { 9765 if (!errorMessage.isEmpty()) {
9766 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 9766 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
9767 } 9767 }
9768 return; 9768 return;
9769 } 9769 }
9770 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethod(inf o); 9770 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethod(inf o);
9771 } 9771 }
9772 9772
9773 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 9773 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
9774 { 9774 {
9775 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9775 TestObject* impl = V8TestObject::toImpl(info.Holder());
9776 impl->perWorldBindingsOriginTrialEnabledVoidMethod(); 9776 impl->perWorldBindingsOriginTrialEnabledVoidMethod();
9777 } 9777 }
9778 9778
9779 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWor ld(const v8::FunctionCallbackInfo<v8::Value>& info) 9779 static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWor ld(const v8::FunctionCallbackInfo<v8::Value>& info)
9780 { 9780 {
9781 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 9781 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
9782 String memberErrorMessage; 9782 String errorMessage;
9783 if (!OriginTrials::featureName1Enabled(executionContext, memberErrorMessage) ) { 9783 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
9784 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 9784 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
9785 if (!memberErrorMessage.isEmpty()) { 9785 if (!errorMessage.isEmpty()) {
9786 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, memberErrorMessage)); 9786 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea te(JSMessageSource, ErrorMessageLevel, errorMessage));
9787 } 9787 }
9788 return; 9788 return;
9789 } 9789 }
9790 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodForM ainWorld(info); 9790 TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodForM ainWorld(info);
9791 } 9791 }
9792 9792
9793 static void originTrialEnabledOverloadedVoidMethod1Method(const v8::FunctionCall backInfo<v8::Value>& info) 9793 static void originTrialEnabledOverloadedVoidMethod1Method(const v8::FunctionCall backInfo<v8::Value>& info)
9794 { 9794 {
9795 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9795 TestObject* impl = V8TestObject::toImpl(info.Holder());
9796 V8StringResource<> stringArg; 9796 V8StringResource<> stringArg;
(...skipping 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after
12455 ScriptState::Scope scope(scriptState); 12455 ScriptState::Scope scope(scriptState);
12456 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12456 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12457 if (holder.IsEmpty()) 12457 if (holder.IsEmpty())
12458 return false; 12458 return false;
12459 12459
12460 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12460 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12461 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12461 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12462 } 12462 }
12463 12463
12464 } // namespace blink 12464 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698