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

Side by Side Diff: Source/bindings/tests/results/V8TestObjectPython.h

Issue 59853010: IDL compiler: [PerContextEnabled] methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static inline void* toInternalPointer(TestObjectPython* impl) 73 static inline void* toInternalPointer(TestObjectPython* impl)
74 { 74 {
75 return impl; 75 return impl;
76 } 76 }
77 77
78 static inline TestObjectPython* fromInternalPointer(void* object) 78 static inline TestObjectPython* fromInternalPointer(void* object)
79 { 79 {
80 return static_cast<TestObjectPython*>(object); 80 return static_cast<TestObjectPython*>(object);
81 } 81 }
82 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO bjectPython*, v8::Isolate*); 82 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO bjectPython*, v8::Isolate*);
83 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 83 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*);
84 84
85 private: 85 private:
86 friend v8::Handle<v8::Object> wrap(TestObjectPython*, v8::Handle<v8::Object> creationContext, v8::Isolate*); 86 friend v8::Handle<v8::Object> wrap(TestObjectPython*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
87 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObjectPython>, v8 ::Handle<v8::Object> creationContext, v8::Isolate*); 87 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObjectPython>, v8 ::Handle<v8::Object> creationContext, v8::Isolate*);
88 }; 88 };
89 89
90 template<> 90 template<>
91 class WrapperTypeTraits<TestObjectPython > { 91 class WrapperTypeTraits<TestObjectPython > {
92 public: 92 public:
93 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObjectPython ::wrapperTypeInfo; } 93 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObjectPython ::wrapperTypeInfo; }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 template<class CallbackInfo, class Wrappable> 170 template<class CallbackInfo, class Wrappable>
171 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable) 171 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable)
172 { 172 {
173 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 173 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
174 } 174 }
175 175
176 } 176 }
177 177
178 #endif // V8TestObjectPython_h 178 #endif // V8TestObjectPython_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObjectPython.idl ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698