OLD | NEW |
1 // This file is generated | 1 // This file is generated |
2 | 2 |
3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
6 | 6 |
7 #ifndef protocol_{{domain.domain}}_imported_h | 7 #ifndef protocol_{{domain.domain}}_imported_h |
8 #define protocol_{{domain.domain}}_imported_h | 8 #define protocol_{{domain.domain}}_imported_h |
9 | 9 |
10 #include "platform/inspector_protocol/ErrorSupport.h" | 10 #include "platform/inspector_protocol/ErrorSupport.h" |
11 #include "platform/inspector_protocol/ValueConversions.h" | 11 #include "platform/inspector_protocol/ValueConversions.h" |
12 #include "platform/inspector_protocol/Values.h" | 12 #include "platform/inspector_protocol/Values.h" |
13 #include "{{include_package}}/{{domain.domain}}.h" | 13 #include "{{imported_package}}/{{domain.domain}}.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 namespace protocol { | 16 namespace protocol { |
17 {% for type in domain.types %} | 17 {% for type in domain.types %} |
18 {% if not (type.type == "object") or not ("properties" in type) or not (type
.exported) %}{% continue %}{% endif %} | 18 {% if not (type.type == "object") or not ("properties" in type) or not (type
.exported) %}{% continue %}{% endif %} |
19 | 19 |
20 template<> | 20 template<> |
21 struct ValueConversions<{{domain.domain}}::API::{{type.id}}> { | 21 struct ValueConversions<{{domain.domain}}::API::{{type.id}}> { |
22 static std::unique_ptr<{{domain.domain}}::API::{{type.id}}> parse(protocol::
Value* value, ErrorSupport* errors) | 22 static std::unique_ptr<{{domain.domain}}::API::{{type.id}}> parse(protocol::
Value* value, ErrorSupport* errors) |
23 { | 23 { |
(...skipping 16 matching lines...) Expand all Loading... |
40 { | 40 { |
41 return SerializedValue::create(value->toJSONString()); | 41 return SerializedValue::create(value->toJSONString()); |
42 } | 42 } |
43 }; | 43 }; |
44 {% endfor %} | 44 {% endfor %} |
45 | 45 |
46 } // namespace protocol | 46 } // namespace protocol |
47 } // namespace blink | 47 } // namespace blink |
48 | 48 |
49 #endif // !defined(protocol_{{domain.domain}}_imported_h) | 49 #endif // !defined(protocol_{{domain.domain}}_imported_h) |
OLD | NEW |