-
yukishiino@chromium.org authored
Introduces a new virtual method ScriptWrappable::wrap and uses it instead of blink::wrap(T*, ...). Major design changes in this CL are: * DEFINE_WRAPPERTYPEINFO defines virtual T::wrapperTypeInfo() method in each script wrappable DOM classes. With this macro, ScriptWrappable::wrapperTypeInfo() returns the actual WrapperTypeInfo of the instance. Each script wrappable DOM classes must use this macro. * New ScriptWrappable::wrap method plays the role of both of old blink::wrap(T, ...) and V8T::createWrapper functions, and the method is customizable in derived classes. Follow-up CLs will remove the code which this CL make unnecessary step by step. BUG=235436 Review URL: https://codereview.chromium.org/478243002 git-svn-id: svn://svn.chromium.org/blink/trunk@181216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
c0d0b5a8