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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/String16_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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/inspector_protocol/String16_h.template
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16.h b/third_party/WebKit/Source/platform/inspector_protocol/String16_h.template
similarity index 87%
rename from third_party/WebKit/Source/platform/inspector_protocol/String16.h
rename to third_party/WebKit/Source/platform/inspector_protocol/String16_h.template
index abd01b3208a42bada974f16db2bdecd4f9cd7f9f..104888eae0fadcc4137bc86cc1c5e51c84ef8698 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/String16.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/String16_h.template
@@ -5,8 +5,9 @@
#ifndef String16_h
#define String16_h
-#include "platform/inspector_protocol/Collections.h"
-#include "platform/inspector_protocol/Platform.h"
+//#include "Collections.h"
+//#include "Platform.h"
+#include "{{export_macro_include}}"
#include <vector>
@@ -14,16 +15,16 @@ namespace blink {
namespace protocol {
namespace internal {
-PLATFORM_EXPORT void intToStr(int, char*, size_t);
-PLATFORM_EXPORT void doubleToStr(double, char*, size_t);
-PLATFORM_EXPORT void doubleToStr3(double, char*, size_t);
-PLATFORM_EXPORT void doubleToStr6(double, char*, size_t);
-PLATFORM_EXPORT double strToDouble(const char*, bool*);
-PLATFORM_EXPORT int strToInt(const char*, bool*);
+{{export_macro}} void intToStr(int, char*, size_t);
+{{export_macro}} void doubleToStr(double, char*, size_t);
+{{export_macro}} void doubleToStr3(double, char*, size_t);
+{{export_macro}} void doubleToStr6(double, char*, size_t);
+{{export_macro}} double strToDouble(const char*, bool*);
+{{export_macro}} int strToInt(const char*, bool*);
} // namespace internal
template <typename T, typename C>
-class PLATFORM_EXPORT String16Base {
+class {{export_macro}} String16Base {
public:
static bool isASCII(C c)
{
@@ -151,16 +152,12 @@ public:
} // namespace protocol
} // namespace blink
-#if V8_INSPECTOR_USE_STL
-#include "platform/inspector_protocol/String16STL.h"
-#else
-#include "platform/inspector_protocol/String16WTF.h"
-#endif // V8_INSPECTOR_USE_STL
+#include "{{string16_impl_h_include}}"
namespace blink {
namespace protocol {
-class PLATFORM_EXPORT String16Builder {
+class {{export_macro}} String16Builder {
public:
String16Builder();
void append(const String16&);

Powered by Google App Engine
This is Rietveld 408576698