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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp

Issue 2159633002: [DevTools] Generate public versions of protocol classes to be exposed in v8_inspector/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra files Created 4 years, 5 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/Values.cpp
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
index 7d4ec242ae4c51d2c557413daf72b9d9f61acdd6..5b8f13b4930e2716f71136b7ece01bc11f351181 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
@@ -92,6 +92,11 @@ bool Value::asString(String16*) const
return false;
}
+bool Value::asSerialized(String16*) const
+{
+ return false;
+}
+
String16 Value::toJSONString() const
{
String16Builder result;
@@ -188,6 +193,23 @@ std::unique_ptr<Value> StringValue::clone() const
return StringValue::create(m_stringValue);
}
+bool SerializedValue::asSerialized(String16* output) const
+{
+ *output = m_serializedValue;
+ return true;
+}
+
+void SerializedValue::writeJSON(String16Builder* output) const
+{
+ DCHECK(type() == TypeSerialized);
+ output->append(m_serializedValue);
+}
+
+std::unique_ptr<Value> SerializedValue::clone() const
+{
+ return SerializedValue::create(m_serializedValue);
+}
+
DictionaryValue::~DictionaryValue()
{
}

Powered by Google App Engine
This is Rietveld 408576698