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

Unified Diff: ash/common/devtools/ash_devtools_dom_agent.cc

Issue 2468803002: [DevTools] migrate InspectorDOMAgent to new style (Closed)
Patch Set: addressed comments and rebased Created 4 years, 1 month 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
« no previous file with comments | « ash/common/devtools/ash_devtools_dom_agent.h ('k') | third_party/WebKit/Source/core/inspector/DOMEditor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/devtools/ash_devtools_dom_agent.cc
diff --git a/ash/common/devtools/ash_devtools_dom_agent.cc b/ash/common/devtools/ash_devtools_dom_agent.cc
index 402125e81da9284619f6d39ad5b8ddd4ed171aef..8ae72bba5bf9cd4bd7b1528c8be21be96b52a473 100644
--- a/ash/common/devtools/ash_devtools_dom_agent.cc
+++ b/ash/common/devtools/ash_devtools_dom_agent.cc
@@ -98,10 +98,18 @@ AshDevToolsDOMAgent::BuildInitialTree() {
return BuildNode("root", nullptr, std::move(children));
}
-void AshDevToolsDOMAgent::getDocument(
- ui::devtools::protocol::ErrorString* error,
+ui::devtools::protocol::Response AshDevToolsDOMAgent::enable() {
+ return ui::devtools::protocol::Response::OK();
+}
+
+ui::devtools::protocol::Response AshDevToolsDOMAgent::disable() {
+ return ui::devtools::protocol::Response::OK();
+}
+
+ui::devtools::protocol::Response AshDevToolsDOMAgent::getDocument(
std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) {
*out_root = BuildInitialTree();
+ return ui::devtools::protocol::Response::OK();
}
} // namespace devtools
« no previous file with comments | « ash/common/devtools/ash_devtools_dom_agent.h ('k') | third_party/WebKit/Source/core/inspector/DOMEditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698