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

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

Issue 964553003: bindings: Use V8 MaybeLocal<> APIs in Dictionary class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/CustomElementConstructorBuilder.cpp ('k') | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/Dictionary.h
diff --git a/Source/bindings/core/v8/Dictionary.h b/Source/bindings/core/v8/Dictionary.h
index 3a5139d521149d067f615f06470d72b38d48da37..5cdb27f25bf16774cdbe9eaf23b54da2e446342f 100644
--- a/Source/bindings/core/v8/Dictionary.h
+++ b/Source/bindings/core/v8/Dictionary.h
@@ -45,7 +45,7 @@ namespace blink {
// Dictionary class provides ways to retrieve property values as C++ objects
// from a V8 object. Instances of this class must not outlive V8's handle scope
// because they hold a V8 value without putting it on persistent handles.
-class CORE_EXPORT Dictionary {
+class CORE_EXPORT Dictionary final {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
Dictionary();
@@ -110,16 +110,17 @@ public:
bool hasProperty(const String&) const;
v8::Isolate* isolate() const { return m_isolate; }
-
- bool getKey(const String& key, v8::Local<v8::Value>&) const;
-
-private:
v8::Local<v8::Context> v8Context() const
{
ASSERT(m_isolate);
return m_isolate->GetCurrentContext();
}
+ bool getKey(const String& key, v8::Local<v8::Value>&) const;
+
+private:
+ bool toObject(v8::Local<v8::Object>*) const;
Yuki 2015/03/27 06:48:33 nit: Since you're using v8::Local<>& elsewhere, yo
bashi 2015/03/27 07:05:48 Done.
+
v8::Handle<v8::Value> m_options;
v8::Isolate* m_isolate;
ExceptionState* m_exceptionState;
« no previous file with comments | « Source/bindings/core/v8/CustomElementConstructorBuilder.cpp ('k') | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698