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

Unified Diff: ash/common/devtools/devtools_dom_agent.h

Issue 2372843002: Add ash devtools client (Closed)
Patch Set: Use MakeUnique Created 4 years, 2 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
« no previous file with comments | « ash/common/devtools/OWNERS ('k') | ash/common/devtools/devtools_dom_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/devtools/devtools_dom_agent.h
diff --git a/ash/common/devtools/devtools_dom_agent.h b/ash/common/devtools/devtools_dom_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..0692300e2605298a4899a171c69d360ab81985d1
--- /dev/null
+++ b/ash/common/devtools/devtools_dom_agent.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_
+#define ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_
+
+#include "ash/common/wm_shell.h"
+#include "components/ui_devtools/DOM.h"
+
+namespace ash {
+namespace devtools {
+
+class AshDevToolsDOMAgent : public ui::devtools::protocol::DOM::Backend {
+ public:
+ explicit AshDevToolsDOMAgent(ash::WmShell* shell);
+ ~AshDevToolsDOMAgent() override;
+
+ private:
+ std::unique_ptr<ui::devtools::protocol::DOM::Node> BuildInitialTree();
+
+ // DOM::Backend
+ void enable(ui::devtools::protocol::ErrorString* error) override {}
+ void disable(ui::devtools::protocol::ErrorString* error) override {}
+ void getDocument(
+ ui::devtools::protocol::ErrorString* error,
+ std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) override;
+
+ ash::WmShell* shell_;
+
+ DISALLOW_COPY_AND_ASSIGN(AshDevToolsDOMAgent);
+};
+
+} // namespace devtools
+} // namespace ash
+
+#endif // ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_
« no previous file with comments | « ash/common/devtools/OWNERS ('k') | ash/common/devtools/devtools_dom_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698