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

Unified Diff: Source/bindings/core/v8/DictionaryHelperForBindings.h

Issue 1154943009: bindings: Remove [EventConstructor] and [InitializedByEventConstructor] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/bindings/core/v8/DictionaryHelperForBindings.h
diff --git a/Source/bindings/core/v8/DictionaryHelperForBindings.h b/Source/bindings/core/v8/DictionaryHelperForBindings.h
index 03fd436872bcfed7c273cf785da5290f67e017c4..10be3d8072f5579bc10d197750a5afb86ac69349 100644
--- a/Source/bindings/core/v8/DictionaryHelperForBindings.h
+++ b/Source/bindings/core/v8/DictionaryHelperForBindings.h
@@ -42,26 +42,6 @@ bool DictionaryHelper::get(const Dictionary& dictionary, const String& key, Poin
return true;
}
-template <template <typename> class PointerType, typename T>
-bool DictionaryHelper::convert(const Dictionary& dictionary, Dictionary::ConversionContext& context, const String& key, PointerType<T>& value)
-{
- Dictionary::ConversionContextScope scope(context);
-
- if (!DictionaryHelper::get(dictionary, key, value))
- return true;
-
- if (value)
- return true;
-
- v8::Local<v8::Value> v8Value;
- dictionary.get(key, v8Value);
- if (context.isNullable() && blink::isUndefinedOrNull(v8Value))
- return true;
-
- context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does not have a " + context.typeName() + " type."));
- return false;
-}
-
} // namespace blink
#endif // DictionaryHelperForBindings_h

Powered by Google App Engine
This is Rietveld 408576698