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

Side by Side Diff: Source/bindings/v8/CustomElementConstructorBuilder.h

Issue 40433002: Make wrapperTypeInfo static member const in bindings classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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 /* 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 PassRefPtr<CustomElementLifecycleCallbacks> createCallbacks(); 71 PassRefPtr<CustomElementLifecycleCallbacks> createCallbacks();
72 bool createConstructor(Document*, CustomElementDefinition*, ExceptionState&) ; 72 bool createConstructor(Document*, CustomElementDefinition*, ExceptionState&) ;
73 bool didRegisterDefinition(CustomElementDefinition*) const; 73 bool didRegisterDefinition(CustomElementDefinition*) const;
74 74
75 // This method collects a return value for the bindings. It is 75 // This method collects a return value for the bindings. It is
76 // safe to call this method even if the builder failed; it will 76 // safe to call this method even if the builder failed; it will
77 // return an empty value. 77 // return an empty value.
78 ScriptValue bindingsReturnValue() const; 78 ScriptValue bindingsReturnValue() const;
79 79
80 private: 80 private:
81 bool hasValidPrototypeChainFor(WrapperTypeInfo*) const; 81 bool hasValidPrototypeChainFor(const WrapperTypeInfo*) const;
82 bool prototypeIsValid(const AtomicString& type, ExceptionState&) const; 82 bool prototypeIsValid(const AtomicString& type, ExceptionState&) const;
83 v8::Handle<v8::Function> retrieveCallback(v8::Isolate*, const char* name); 83 v8::Handle<v8::Function> retrieveCallback(v8::Isolate*, const char* name);
84 84
85 v8::Handle<v8::Context> m_context; 85 v8::Handle<v8::Context> m_context;
86 const Dictionary* m_options; 86 const Dictionary* m_options;
87 v8::Handle<v8::Object> m_prototype; 87 v8::Handle<v8::Object> m_prototype;
88 WrapperTypeInfo* m_wrapperType; 88 const WrapperTypeInfo* m_wrapperType;
89 v8::Handle<v8::Function> m_constructor; 89 v8::Handle<v8::Function> m_constructor;
90 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks; 90 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks;
91 }; 91 };
92 92
93 } 93 }
94 94
95 #endif // CustomElementConstructorBuilder_h 95 #endif // CustomElementConstructorBuilder_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/CustomElementBinding.cpp ('k') | Source/bindings/v8/CustomElementConstructorBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698