Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |