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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/CodeGenerator.py
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py b/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
index c8379eebbe2fb43e604f98329bc2dc97ac870c9f..0d0a87ab7f2265af48f672c64353e35a48df8b56 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
+++ b/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
@@ -115,27 +115,27 @@ def create_user_type_definition(domain_name, type):
def create_object_type_definition():
return {
- "return_type": "PassRefPtr<JSONObject>",
- "pass_type": "PassRefPtr<JSONObject>",
+ "return_type": "PassRefPtr<protocol::DictionaryValue>",
+ "pass_type": "PassRefPtr<protocol::DictionaryValue>",
"to_raw_type": "%s",
"to_pass_type": "%s.release()",
- "type": "RefPtr<JSONObject>",
- "raw_type": "RefPtr<JSONObject>",
- "raw_pass_type": "PassRefPtr<JSONObject>",
- "raw_return_type": "RefPtr<JSONObject>",
+ "type": "RefPtr<protocol::DictionaryValue>",
+ "raw_type": "RefPtr<protocol::DictionaryValue>",
+ "raw_pass_type": "PassRefPtr<protocol::DictionaryValue>",
+ "raw_return_type": "RefPtr<protocol::DictionaryValue>",
}
def create_any_type_definition():
return {
- "return_type": "PassRefPtr<JSONValue>",
- "pass_type": "PassRefPtr<JSONValue>",
+ "return_type": "PassRefPtr<protocol::Value>",
+ "pass_type": "PassRefPtr<protocol::Value>",
"to_pass_type": "%s.release()",
"to_raw_type": "%s",
- "type": "RefPtr<JSONValue>",
- "raw_type": "RefPtr<JSONValue>",
- "raw_pass_type": "PassRefPtr<JSONValue>",
- "raw_return_type": "RefPtr<JSONValue>",
+ "type": "RefPtr<protocol::Value>",
+ "raw_type": "RefPtr<protocol::Value>",
+ "raw_pass_type": "PassRefPtr<protocol::Value>",
+ "raw_return_type": "RefPtr<protocol::Value>",
}

Powered by Google App Engine
This is Rietveld 408576698