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 | |
| 5 #ifndef ASH_COMMON_DEVTOOLS_DEVTOOLS_CLIENT_DOM_H_ | |
| 6 #define ASH_COMMON_DEVTOOLS_DEVTOOLS_CLIENT_DOM_H_ | |
| 7 | |
| 8 #include "ash/common/wm_shell.h" | |
| 9 #include "components/ui_devtools/DOM.h" | |
| 10 | |
| 11 namespace ui { | |
|
sadrul
2016/10/26 19:20:41
Should be namespace ash
Sarmad Hashmi
2016/10/26 20:22:58
Done.
| |
| 12 namespace devtools { | |
| 13 | |
| 14 class AshDevToolsClientDOM : public protocol::DOM::Backend { | |
| 15 public: | |
| 16 explicit AshDevToolsClientDOM(ash::WmShell* shell); | |
| 17 ~AshDevToolsClientDOM() override; | |
| 18 | |
| 19 private: | |
| 20 std::unique_ptr<protocol::DOM::Node> BuildInitialTree(); | |
| 21 | |
| 22 // DOM::Backend | |
| 23 void enable(protocol::ErrorString* error) override {} | |
| 24 void disable(protocol::ErrorString* error) override {} | |
| 25 void getDocument(protocol::ErrorString* error, | |
| 26 std::unique_ptr<protocol::DOM::Node>* out_root) override; | |
| 27 | |
| 28 ash::WmShell* shell_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(AshDevToolsClientDOM); | |
| 31 }; | |
| 32 | |
| 33 } // namespace devtools | |
| 34 } // namespace ui | |
| 35 | |
| 36 #endif // ASH_COMMON_DEVTOOLS_DEVTOOLS_CLIENT_DOM_H_ | |
| OLD | NEW |