Index: third_party/WebKit/Source/platform/inspector_protocol/Imported_h.template |
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Imported_h.template b/third_party/WebKit/Source/platform/inspector_protocol/Imported_h.template |
deleted file mode 100644 |
index afd9ce79e6aab6803aca85206151f0357a2f65d4..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/platform/inspector_protocol/Imported_h.template |
+++ /dev/null |
@@ -1,51 +0,0 @@ |
-// This file is generated |
- |
-// Copyright (c) 2016 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. |
- |
-#ifndef {{"_".join(config.protocol.namespace)}}_{{domain.domain}}_imported_h |
-#define {{"_".join(config.protocol.namespace)}}_{{domain.domain}}_imported_h |
- |
-#include "{{config.protocol.package}}/Protocol.h" |
-#include "{{config.imported.package}}/{{domain.domain}}.h" |
- |
-{% for namespace in config.protocol.namespace %} |
-namespace {{namespace}} { |
-{% endfor %} |
- {% for type in domain.types %} |
- {% if not (type.type == "object") or not ("properties" in type) or not (type.exported) %}{% continue %}{% endif %} |
- |
-template<> |
-struct ValueConversions<{{"::".join(config.imported.namespace)}}::{{domain.domain}}::API::{{type.id}}> { |
- static std::unique_ptr<{{"::".join(config.imported.namespace)}}::{{domain.domain}}::API::{{type.id}}> parse(protocol::Value* value, ErrorSupport* errors) |
- { |
- if (!value) { |
- errors->addError("value expected"); |
- return nullptr; |
- } |
- String json = value->toJSONString(); |
- auto result = {{"::".join(config.imported.namespace)}}::{{domain.domain}}::API::{{type.id}}::fromJSONString({{config.imported.to_imported_string % "json"}}); |
- if (!result) |
- errors->addError("cannot parse"); |
- return result; |
- } |
- |
- static std::unique_ptr<protocol::Value> serialize(const {{"::".join(config.imported.namespace)}}::{{domain.domain}}::API::{{type.id}}* value) |
- { |
- auto json = value->toJSONString(); |
- return SerializedValue::create({{config.imported.from_imported_string % "std::move(json)"}}); |
- } |
- |
- static std::unique_ptr<protocol::Value> serialize(const std::unique_ptr<{{"::".join(config.imported.namespace)}}::{{domain.domain}}::API::{{type.id}}>& value) |
- { |
- return serialize(value.get()); |
- } |
-}; |
- {% endfor %} |
- |
-{% for namespace in config.protocol.namespace %} |
-} // namespace {{namespace}} |
-{% endfor %} |
- |
-#endif // !defined({{"_".join(config.protocol.namespace)}}_{{domain.domain}}_imported_h) |