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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/Imported_h.template

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 "{{lib_package}}/InspectorProtocol.h"
11 #include "platform/inspector_protocol/ValueConversions.h"
12 #include "platform/inspector_protocol/Values.h"
13 #include "{{imported_package}}/{{domain.domain}}.h" 11 #include "{{imported_package}}/{{domain.domain}}.h"
14 12
15 namespace blink { 13 namespace blink {
16 namespace protocol { 14 namespace protocol {
17 {% for type in domain.types %} 15 {% for type in domain.types %}
18 {% if not (type.type == "object") or not ("properties" in type) or not (type .exported) %}{% continue %}{% endif %} 16 {% if not (type.type == "object") or not ("properties" in type) or not (type .exported) %}{% continue %}{% endif %}
19 17
20 template<> 18 template<>
21 struct ValueConversions<{{domain.domain}}::API::{{type.id}}> { 19 struct ValueConversions<{{domain.domain}}::API::{{type.id}}> {
22 static std::unique_ptr<{{domain.domain}}::API::{{type.id}}> parse(protocol:: Value* value, ErrorSupport* errors) 20 static std::unique_ptr<{{domain.domain}}::API::{{type.id}}> parse(protocol:: Value* value, ErrorSupport* errors)
(...skipping 17 matching lines...) Expand all
40 { 38 {
41 return SerializedValue::create(value->toJSONString()); 39 return SerializedValue::create(value->toJSONString());
42 } 40 }
43 }; 41 };
44 {% endfor %} 42 {% endfor %}
45 43
46 } // namespace protocol 44 } // namespace protocol
47 } // namespace blink 45 } // namespace blink
48 46
49 #endif // !defined(protocol_{{domain.domain}}_imported_h) 47 #endif // !defined(protocol_{{domain.domain}}_imported_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698