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

Unified Diff: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl

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 side-by-side diff with in-line comments
Download patch
Index: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl b/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
index 3ee951cc2a57f0efa58c6658011dae2fa2ef3dc6..8d76c5867ed45aa660e854781fa924ad667c149a 100644
--- a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
@@ -72,9 +72,9 @@ v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element* elemen
{%- endif %}
}
-WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name)
+const WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name)
{
- typedef HashMap<StringImpl*, WrapperTypeInfo*> NameTypeMap;
+ typedef HashMap<StringImpl*, const WrapperTypeInfo*> NameTypeMap;
DEFINE_STATIC_LOCAL(NameTypeMap, map, ());
if (map.isEmpty()) {
// FIXME: This seems wrong. We should list every interface here, not
@@ -84,7 +84,7 @@ WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name
{%- endfor %}
}
- if (WrapperTypeInfo* result = map.get(name.impl()))
+ if (const WrapperTypeInfo* result = map.get(name.impl()))
return result;
return WrapperTypeTraits<{{fallback_js_interface}}>::wrapperTypeInfo();
« no previous file with comments | « Source/bindings/v8/custom/V8TypedArrayCustom.h ('k') | Source/build/scripts/templates/ElementWrapperFactory.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698