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

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

Issue 2372843002: Add ash devtools client (Closed)
Patch Set: Add ash devtools client Created 4 years, 3 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_backend.h
diff --git a/ash/common/devtools/devtools_client_backend.h b/ash/common/devtools/devtools_client_backend.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ae98307032ddf272d0f97e10c195acdc38678a4
--- /dev/null
+++ b/ash/common/devtools/devtools_client_backend.h
@@ -0,0 +1,29 @@
+// 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.
+
sadrul 2016/10/17 16:18:59 Add include guard
Sarmad Hashmi 2016/10/17 19:11:48 Done.
+#include "ash/common/wm_shell.h"
+#include "ui/devtools/DOM.h"
+
+namespace ui {
+namespace devtools {
+
+class AshDevToolsBackend : public protocol::DOM::Backend {
+ public:
+ AshDevToolsBackend(ash::WmShell* shell);
sadrul 2016/10/17 16:18:59 explicit
Sarmad Hashmi 2016/10/17 19:11:48 Done.
+ ~AshDevToolsBackend() override;
+
+ private:
+ std::unique_ptr<protocol::DOM::Node> buildInitialTree();
sadrul 2016/10/17 16:18:59 BuildInitialTree()
Sarmad Hashmi 2016/10/17 19:11:48 Done.
+
+ // DOM::Backend
+ void enable(protocol::ErrorString* error) override {}
+ void disable(protocol::ErrorString* error) override {}
sadrul 2016/10/17 16:18:59 When are enable/disable called?
Sarmad Hashmi 2016/10/17 19:11:48 The client (inspector) sends an enable message ini
+ void getDocument(protocol::ErrorString* error,
+ std::unique_ptr<protocol::DOM::Node>* out_root) override;
+
+ ash::WmShell* shell_;
+};
sadrul 2016/10/17 16:18:59 DISALLOW_COPY_AND_ASSIGN
Sarmad Hashmi 2016/10/17 19:11:48 Done.
+
+} // namespace devtools
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698