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

Unified Diff: sky/engine/bindings/templates/dictionary_v8.cpp

Issue 922053002: Remove unused V8 integration code in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/bindings/templates/dictionary_v8.h ('k') | sky/engine/bindings/templates/interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/templates/dictionary_v8.cpp
diff --git a/sky/engine/bindings/templates/dictionary_v8.cpp b/sky/engine/bindings/templates/dictionary_v8.cpp
deleted file mode 100644
index 3e558acaef020ae9d1dfc7e52703745c0d2eae32..0000000000000000000000000000000000000000
--- a/sky/engine/bindings/templates/dictionary_v8.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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.
-
-// This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
-
-#include "sky/engine/config.h"
-#include "{{v8_class}}.h"
-
-{% for filename in cpp_includes if filename != '%s.h' % v8_class %}
-#include "{{filename}}"
-{% endfor %}
-
-namespace blink {
-
-{{cpp_class}}* {{v8_class}}::toNative(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value)
-{
- {{cpp_class}}* impl = {{cpp_class}}::create();
- // FIXME: Do not use Dictionary and DictionaryHelper
- // https://crbug.com/321462
- Dictionary dictionary(v8Value, isolate);
- {% for member in members %}
- {{member.cpp_type}} {{member.name}};
- if (DictionaryHelper::get(dictionary, "{{member.name}}", {{member.name}}))
- impl->{{member.setter_name}}({{member.name}});
- {% endfor %}
- return impl;
-}
-
-v8::Handle<v8::Value> toV8({{cpp_class}}* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
-{
- v8::Handle<v8::Object> v8Object = v8::Object::New(isolate);
- {% for member in members %}
- if (impl->{{member.has_method_name}}())
- v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.cpp_value_to_v8_value}});
- {% if member.v8_default_value %}
- else
- v8Object->Set(v8String(isolate, "{{member.name}}"), {{member.v8_default_value}});
- {% endif %}
- {% endfor %}
- return v8Object;
-}
-
-} // namespace blink
« no previous file with comments | « sky/engine/bindings/templates/dictionary_v8.h ('k') | sky/engine/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698