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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/Iterable.h
diff --git a/Source/bindings/core/v8/Iterable.h b/Source/bindings/core/v8/Iterable.h
index 75adecc53b3241c160a32d5db1e589711e3a0bba..1ab229e43d426e70f6e9d87f8c114e13f3616e73 100644
--- a/Source/bindings/core/v8/Iterable.h
+++ b/Source/bindings/core/v8/Iterable.h
@@ -97,12 +97,14 @@ private:
{
return key;
}
+ STATIC_ONLY(KeySelector);
haraken 2015/08/12 07:56:12 Ditto.
tasak 2015/08/12 09:13:26 Done.
};
struct ValueSelector {
static const ValueType& select(ScriptState*, const KeyType& key, const ValueType& value)
{
return value;
}
+ STATIC_ONLY(ValueSelector);
};
struct EntrySelector {
static Vector<ScriptValue, 2> select(ScriptState* scriptState, const KeyType& key, const ValueType& value)
@@ -115,6 +117,7 @@ private:
entry.append(ScriptValue(scriptState, toV8(value, creationContext, isolate)));
return entry;
}
+ STATIC_ONLY(EntrySelector);
};
template <typename Selector>

Powered by Google App Engine
This is Rietveld 408576698