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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 452743003: Rename V8X::fooMethodImplementedInPrivateScript to V8X::PrivateScript::fooMethod (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
719 } 719 }
720 #endif // ENABLE(PARTIAL_CONDITION) 720 #endif // ENABLE(PARTIAL_CONDITION)
721 721
722 #if ENABLE(PARTIAL_CONDITION) 722 #if ENABLE(PARTIAL_CONDITION)
723 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 723 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
724 { 724 {
725 v8::Handle<v8::Object> holder = info.Holder(); 725 v8::Handle<v8::Object> holder = info.Holder();
726 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 726 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
727 String result; 727 String result;
728 if (!V8TestInterface::stringAttributeAttributeGetterImplementedInPrivateScri pt(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 728 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toFrameI fNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
729 return; 729 return;
730 v8SetReturnValueString(info, result, info.GetIsolate()); 730 v8SetReturnValueString(info, result, info.GetIsolate());
731 } 731 }
732 #endif // ENABLE(PARTIAL_CONDITION) 732 #endif // ENABLE(PARTIAL_CONDITION)
733 733
734 #if ENABLE(PARTIAL_CONDITION) 734 #if ENABLE(PARTIAL_CONDITION)
735 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 735 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
736 { 736 {
737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
738 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info); 738 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info);
739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
740 } 740 }
741 #endif // ENABLE(PARTIAL_CONDITION) 741 #endif // ENABLE(PARTIAL_CONDITION)
742 742
743 #if ENABLE(PARTIAL_CONDITION) 743 #if ENABLE(PARTIAL_CONDITION)
744 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 744 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
745 { 745 {
746 v8::Handle<v8::Object> holder = info.Holder(); 746 v8::Handle<v8::Object> holder = info.Holder();
747 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 747 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
748 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 748 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
749 V8TestInterface::stringAttributeAttributeSetterImplementedInPrivateScript(to FrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 749 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
750 } 750 }
751 #endif // ENABLE(PARTIAL_CONDITION) 751 #endif // ENABLE(PARTIAL_CONDITION)
752 752
753 #if ENABLE(PARTIAL_CONDITION) 753 #if ENABLE(PARTIAL_CONDITION)
754 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 754 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
755 { 755 {
756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
757 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info); 757 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info);
758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
759 } 759 }
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 return; 1174 return;
1175 } 1175 }
1176 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1176 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ;
1177 int value; 1177 int value;
1178 { 1178 {
1179 v8::TryCatch block; 1179 v8::TryCatch block;
1180 V8RethrowTryCatchScope rethrow(block); 1180 V8RethrowTryCatchScope rethrow(block);
1181 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState); 1181 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState);
1182 } 1182 }
1183 int result = 0; 1183 int result = 0;
1184 if (!V8TestInterface::shortMethodWithShortArgumentImplementedInPrivateScript MethodImplementedInPrivateScript(toFrameIfNotDetached(info.GetIsolate()->GetCurr entContext()), impl, value, &result)) 1184 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext( )), impl, value, &result))
1185 return; 1185 return;
1186 v8SetReturnValueInt(info, result); 1186 v8SetReturnValueInt(info, result);
1187 } 1187 }
1188 #endif // ENABLE(PARTIAL_CONDITION) 1188 #endif // ENABLE(PARTIAL_CONDITION)
1189 1189
1190 #if ENABLE(PARTIAL_CONDITION) 1190 #if ENABLE(PARTIAL_CONDITION)
1191 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 1191 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
1192 { 1192 {
1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1194 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info); 1194 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info);
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 { 1639 {
1640 fromInternalPointer(object)->deref(); 1640 fromInternalPointer(object)->deref();
1641 } 1641 }
1642 1642
1643 template<> 1643 template<>
1644 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1644 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
1645 { 1645 {
1646 return toV8(impl, creationContext, isolate); 1646 return toV8(impl, creationContext, isolate);
1647 } 1647 }
1648 1648
1649 bool V8TestInterface::shortMethodWithShortArgumentImplementedInPrivateScriptMeth odImplementedInPrivateScript(LocalFrame* frame, TestInterface* holderImpl, int v alue, int* result) 1649 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result)
1650 { 1650 {
1651 if (!frame) 1651 if (!frame)
1652 return false; 1652 return false;
1653 v8::HandleScope handleScope(toIsolate(frame)); 1653 v8::HandleScope handleScope(toIsolate(frame));
1654 ScriptForbiddenScope::AllowUserAgentScript script; 1654 ScriptForbiddenScope::AllowUserAgentScript script;
1655 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld()); 1655 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld());
1656 if (context.IsEmpty()) 1656 if (context.IsEmpty())
1657 return false; 1657 return false;
1658 ScriptState* scriptState = ScriptState::from(context); 1658 ScriptState* scriptState = ScriptState::from(context);
1659 if (!scriptState->executionContext()) 1659 if (!scriptState->executionContext())
(...skipping 14 matching lines...) Expand all
1674 RELEASE_ASSERT_NOT_REACHED(); 1674 RELEASE_ASSERT_NOT_REACHED();
1675 } 1675 }
1676 return false; 1676 return false;
1677 } 1677 }
1678 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 1678 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
1679 RELEASE_ASSERT(!exceptionState.hadException()); 1679 RELEASE_ASSERT(!exceptionState.hadException());
1680 *result = cppValue; 1680 *result = cppValue;
1681 return true; 1681 return true;
1682 } 1682 }
1683 1683
1684 bool V8TestInterface::stringAttributeAttributeGetterImplementedInPrivateScript(L ocalFrame* frame, TestInterfaceImplementation* holderImpl, String* result) 1684 bool V8TestInterface::PrivateScript::stringAttributeAttributeGetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String* result)
1685 { 1685 {
1686 if (!frame) 1686 if (!frame)
1687 return false; 1687 return false;
1688 v8::HandleScope handleScope(toIsolate(frame)); 1688 v8::HandleScope handleScope(toIsolate(frame));
1689 ScriptForbiddenScope::AllowUserAgentScript script; 1689 ScriptForbiddenScope::AllowUserAgentScript script;
1690 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld()); 1690 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld());
1691 if (context.IsEmpty()) 1691 if (context.IsEmpty())
1692 return false; 1692 return false;
1693 ScriptState* scriptState = ScriptState::from(context); 1693 ScriptState* scriptState = ScriptState::from(context);
1694 if (!scriptState->executionContext()) 1694 if (!scriptState->executionContext())
(...skipping 12 matching lines...) Expand all
1707 RELEASE_ASSERT_NOT_REACHED(); 1707 RELEASE_ASSERT_NOT_REACHED();
1708 } 1708 }
1709 return false; 1709 return false;
1710 } 1710 }
1711 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 1711 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
1712 RELEASE_ASSERT(!exceptionState.hadException()); 1712 RELEASE_ASSERT(!exceptionState.hadException());
1713 *result = cppValue; 1713 *result = cppValue;
1714 return true; 1714 return true;
1715 } 1715 }
1716 1716
1717 bool V8TestInterface::stringAttributeAttributeSetterImplementedInPrivateScript(L ocalFrame* frame, TestInterfaceImplementation* holderImpl, String cppValue) 1717 bool V8TestInterface::PrivateScript::stringAttributeAttributeSetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String cppValue)
1718 { 1718 {
1719 if (!frame) 1719 if (!frame)
1720 return false; 1720 return false;
1721 v8::HandleScope handleScope(toIsolate(frame)); 1721 v8::HandleScope handleScope(toIsolate(frame));
1722 ScriptForbiddenScope::AllowUserAgentScript script; 1722 ScriptForbiddenScope::AllowUserAgentScript script;
1723 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld()); 1723 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat eScriptIsolatedWorld());
1724 if (context.IsEmpty()) 1724 if (context.IsEmpty())
1725 return false; 1725 return false;
1726 ScriptState* scriptState = ScriptState::from(context); 1726 ScriptState* scriptState = ScriptState::from(context);
1727 if (!scriptState->executionContext()) 1727 if (!scriptState->executionContext())
(...skipping 11 matching lines...) Expand all
1739 // FIXME: We should support exceptions other than DOM exceptions. 1739 // FIXME: We should support exceptions other than DOM exceptions.
1740 RELEASE_ASSERT_NOT_REACHED(); 1740 RELEASE_ASSERT_NOT_REACHED();
1741 } 1741 }
1742 return false; 1742 return false;
1743 } 1743 }
1744 return true; 1744 return true;
1745 } 1745 }
1746 1746
1747 } // namespace blink 1747 } // namespace blink
1748 #endif // ENABLE(CONDITION) 1748 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.h ('k') | Source/bindings/tests/results/V8TestObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698