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

Side by Side Diff: Source/bindings/core/v8/NPV8Object.cpp

Issue 725163002: bindings: Retires V8T::toEventTarget and reduces the binary size. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made bitfields be type of unsigned to support both of MSVC and Android. Created 6 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/WrapperTypeInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007, 2008, 2009 Google, Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Google, Inc. All rights reserved.
4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void trace(Visitor*, ScriptWrappableBase*) 53 void trace(Visitor*, ScriptWrappableBase*)
54 { 54 {
55 } 55 }
56 56
57 } // namespace 57 } // namespace
58 58
59 namespace blink { 59 namespace blink {
60 60
61 const WrapperTypeInfo* npObjectTypeInfo() 61 const WrapperTypeInfo* npObjectTypeInfo()
62 { 62 {
63 static const WrapperTypeInfo typeInfo = { gin::kEmbedderBlink, 0, 0, 0, trac e, 0, 0, 0, 0, 0, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInf o::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; 63 static const WrapperTypeInfo typeInfo = { gin::kEmbedderBlink, 0, 0, 0, trac e, 0, 0, 0, 0, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo:: ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Depe ndent, WrapperTypeInfo::RefCountedObject };
64 return &typeInfo; 64 return &typeInfo;
65 } 65 }
66 66
67 // FIXME: Comments on why use malloc and free. 67 // FIXME: Comments on why use malloc and free.
68 static NPObject* allocV8NPObject(NPP, NPClass*) 68 static NPObject* allocV8NPObject(NPP, NPClass*)
69 { 69 {
70 return static_cast<NPObject*>(malloc(sizeof(V8NPObject))); 70 return static_cast<NPObject*>(malloc(sizeof(V8NPObject)));
71 } 71 }
72 72
73 static void freeV8NPObject(NPObject* npObject) 73 static void freeV8NPObject(NPObject* npObject)
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 convertV8ObjectToNPVariant(isolate, resultObject, npObject, result); 615 convertV8ObjectToNPVariant(isolate, resultObject, npObject, result);
616 return true; 616 return true;
617 } 617 }
618 618
619 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class-> construct) 619 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class-> construct)
620 return npObject->_class->construct(npObject, arguments, argumentCount, r esult); 620 return npObject->_class->construct(npObject, arguments, argumentCount, r esult);
621 621
622 return false; 622 return false;
623 } 623 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/WrapperTypeInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698