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

Side by Side Diff: ash/common/devtools/devtools_client_backend.h

Issue 2372843002: Add ash devtools client (Closed)
Patch Set: Add ash devtools client 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
sadrul 2016/10/17 16:18:59 Add include guard
Sarmad Hashmi 2016/10/17 19:11:48 Done.
5 #include "ash/common/wm_shell.h"
6 #include "ui/devtools/DOM.h"
7
8 namespace ui {
9 namespace devtools {
10
11 class AshDevToolsBackend : public protocol::DOM::Backend {
12 public:
13 AshDevToolsBackend(ash::WmShell* shell);
sadrul 2016/10/17 16:18:59 explicit
Sarmad Hashmi 2016/10/17 19:11:48 Done.
14 ~AshDevToolsBackend() override;
15
16 private:
17 std::unique_ptr<protocol::DOM::Node> buildInitialTree();
sadrul 2016/10/17 16:18:59 BuildInitialTree()
Sarmad Hashmi 2016/10/17 19:11:48 Done.
18
19 // DOM::Backend
20 void enable(protocol::ErrorString* error) override {}
21 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
22 void getDocument(protocol::ErrorString* error,
23 std::unique_ptr<protocol::DOM::Node>* out_root) override;
24
25 ash::WmShell* shell_;
26 };
sadrul 2016/10/17 16:18:59 DISALLOW_COPY_AND_ASSIGN
Sarmad Hashmi 2016/10/17 19:11:48 Done.
27
28 } // namespace devtools
29 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698