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

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

Issue 2372843002: Add ash devtools client (Closed)
Patch Set: Add OWNERS file 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
Index: ash/common/devtools/devtools_client_dom.h
diff --git a/ash/common/devtools/devtools_client_dom.h b/ash/common/devtools/devtools_client_dom.h
new file mode 100644
index 0000000000000000000000000000000000000000..94e952cd5ab0805bb9e8dbed32174d429bc8b4c6
--- /dev/null
+++ b/ash/common/devtools/devtools_client_dom.h
@@ -0,0 +1,36 @@
+// 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_CLIENT_DOM_H_
+#define ASH_COMMON_DEVTOOLS_DEVTOOLS_CLIENT_DOM_H_
+
+#include "ash/common/wm_shell.h"
+#include "components/ui_devtools/DOM.h"
+
+namespace ui {
sadrul 2016/10/26 19:20:41 Should be namespace ash
Sarmad Hashmi 2016/10/26 20:22:58 Done.
+namespace devtools {
+
+class AshDevToolsClientDOM : public protocol::DOM::Backend {
+ public:
+ explicit AshDevToolsClientDOM(ash::WmShell* shell);
+ ~AshDevToolsClientDOM() override;
+
+ private:
+ std::unique_ptr<protocol::DOM::Node> BuildInitialTree();
+
+ // DOM::Backend
+ void enable(protocol::ErrorString* error) override {}
+ void disable(protocol::ErrorString* error) override {}
+ void getDocument(protocol::ErrorString* error,
+ std::unique_ptr<protocol::DOM::Node>* out_root) override;
+
+ ash::WmShell* shell_;
+
+ DISALLOW_COPY_AND_ASSIGN(AshDevToolsClientDOM);
+};
+
+} // namespace devtools
+} // namespace ui
+
+#endif // ASH_COMMON_DEVTOOLS_DEVTOOLS_CLIENT_DOM_H_

Powered by Google App Engine
This is Rietveld 408576698