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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/Exported_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}}_api_h 7 #ifndef protocol_{{domain.domain}}_api_h
8 #define protocol_{{domain.domain}}_api_h 8 #define protocol_{{domain.domain}}_api_h
9 9
10 {% if export_macro == "PLATFORM_EXPORT" %} 10 #include "{{export_macro_include}}"
11 #include "platform/inspector_protocol/Platform.h" 11 #include "{{lib_package}}/InspectorProtocol.h"
12 {% else %}
13 #include "core/CoreExport.h"
14 {% endif %}
15 #include "platform/inspector_protocol/String16.h"
16 12
17 namespace blink { 13 namespace blink {
18 namespace protocol { 14 namespace protocol {
19 namespace {{domain.domain}} { 15 namespace {{domain.domain}} {
20 namespace API { 16 namespace API {
21 17
22 // ------------- Enums. 18 // ------------- Enums.
23 {% for type in domain.types %} 19 {% for type in domain.types %}
24 {% if ("enum" in type) and type.exported %} 20 {% if ("enum" in type) and type.exported %}
25 21
(...skipping 30 matching lines...) Expand all
56 static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromJS ONString(const String16& json); 52 static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromJS ONString(const String16& json);
57 }; 53 };
58 {% endfor %} 54 {% endfor %}
59 55
60 } // namespace API 56 } // namespace API
61 } // namespace {{domain.domain}} 57 } // namespace {{domain.domain}}
62 } // namespace protocol 58 } // namespace protocol
63 } // namespace blink 59 } // namespace blink
64 60
65 #endif // !defined(protocol_{{domain.domain}}_api_h) 61 #endif // !defined(protocol_{{domain.domain}}_api_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698