| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "gin/dictionary.h" |
| Dictionary::Dictionary(v8::Isolate* isolate) |
| Dictionary::Dictionary(v8::Isolate* isolate, |
| v8::Handle<v8::Object> object) |
| Dictionary::~Dictionary() { |
| Dictionary Dictionary::CreateEmpty(v8::Isolate* isolate) { |
| Dictionary dictionary(isolate); |
| dictionary.object_ = v8::Object::New(isolate); |
| v8::Handle<v8::Value> Converter<Dictionary>::ToV8(v8::Isolate* isolate, |
| bool Converter<Dictionary>::FromV8(v8::Isolate* isolate, |
| v8::Handle<v8::Value> val, |
| *out = Dictionary(isolate, v8::Handle<v8::Object>::Cast(val)); |