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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template b/third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template
index 66cf7f9018537abbb4e6a8dc299a1f0197163a3a..d0c76d88d040da05ff336d676d2373087abc9e88 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Exported_h.template
@@ -4,14 +4,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef protocol_{{domain.domain}}_api_h
-#define protocol_{{domain.domain}}_api_h
+#ifndef {{"_".join(config.protocol.namespace)}}_{{domain.domain}}_api_h
+#define {{"_".join(config.protocol.namespace)}}_{{domain.domain}}_api_h
#include "{{config.class_export.header}}"
-#include "{{config.lib_package}}/InspectorProtocol.h"
+#include "{{config.exported.string_header}}"
-namespace blink {
-namespace protocol {
+{% for namespace in config.protocol.namespace %}
+namespace {{namespace}} {
+{% endfor %}
namespace {{domain.domain}} {
namespace API {
@@ -47,15 +48,16 @@ namespace {{param.name | to_title_case}}Enum {
class {{config.class_export.macro}} {{type.id}} {
public:
- virtual String16 toJSONString() const = 0;
+ virtual {{config.exported.string_out}} toJSONString() const = 0;
virtual ~{{type.id}}() { }
- static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromJSONString(const String16& json);
+ static std::unique_ptr<protocol::{{domain.domain}}::API::{{type.id}}> fromJSONString(const {{config.exported.string_in}}& json);
};
{% endfor %}
} // namespace API
} // namespace {{domain.domain}}
-} // namespace protocol
-} // namespace blink
+{% for namespace in config.protocol.namespace %}
+} // namespace {{namespace}}
+{% endfor %}
-#endif // !defined(protocol_{{domain.domain}}_api_h)
+#endif // !defined({{"_".join(config.protocol.namespace)}}_{{domain.domain}}_api_h)

Powered by Google App Engine
This is Rietveld 408576698