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

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: Fixed patch conflict 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
« no previous file with comments | « Source/bindings/core/v8/ExceptionStatePlaceholder.h ('k') | Source/bindings/core/v8/ModuleProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e91c67b5c875dd335a6aefdc872111defc0e64e9 100644
--- a/Source/bindings/core/v8/Iterable.h
+++ b/Source/bindings/core/v8/Iterable.h
@@ -93,18 +93,21 @@ private:
virtual IterationSource* startIteration(ScriptState*, ExceptionState&) = 0;
struct KeySelector {
+ STATIC_ONLY(KeySelector);
static const KeyType& select(ScriptState*, const KeyType& key, const ValueType& value)
{
return key;
}
};
struct ValueSelector {
+ STATIC_ONLY(ValueSelector);
static const ValueType& select(ScriptState*, const KeyType& key, const ValueType& value)
{
return value;
}
};
struct EntrySelector {
+ STATIC_ONLY(EntrySelector);
static Vector<ScriptValue, 2> select(ScriptState* scriptState, const KeyType& key, const ValueType& value)
{
v8::Local<v8::Object> creationContext = scriptState->context()->Global();
« no previous file with comments | « Source/bindings/core/v8/ExceptionStatePlaceholder.h ('k') | Source/bindings/core/v8/ModuleProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698