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

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

Issue 2462843002: Update ash to use new devtools base agent (Closed)
Patch Set: Rename devtools_dom_agent.* to ash_devtools_dom_agent.* Created 4 years, 1 month 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_dom_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_ 5 #ifndef ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_
6 #define ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_ 6 #define ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_
7 7
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "components/ui_devtools/DOM.h" 9 #include "components/ui_devtools/DOM.h"
10 #include "components/ui_devtools/devtools_base_agent.h"
10 11
11 namespace ash { 12 namespace ash {
12 namespace devtools { 13 namespace devtools {
13 14
14 class AshDevToolsDOMAgent : public ui::devtools::protocol::DOM::Backend { 15 class AshDevToolsDOMAgent : public ui::devtools::UiDevToolsBaseAgent<
16 ui::devtools::protocol::DOM::Metainfo> {
15 public: 17 public:
16 explicit AshDevToolsDOMAgent(ash::WmShell* shell); 18 explicit AshDevToolsDOMAgent(ash::WmShell* shell);
17 ~AshDevToolsDOMAgent() override; 19 ~AshDevToolsDOMAgent() override;
18 20
19 private: 21 private:
20 std::unique_ptr<ui::devtools::protocol::DOM::Node> BuildInitialTree(); 22 std::unique_ptr<ui::devtools::protocol::DOM::Node> BuildInitialTree();
21 23
22 // DOM::Backend 24 // DOM::Backend
23 void enable(ui::devtools::protocol::ErrorString* error) override {} 25 void enable(ui::devtools::protocol::ErrorString* error) override {}
24 void disable(ui::devtools::protocol::ErrorString* error) override {} 26 void disable(ui::devtools::protocol::ErrorString* error) override {}
25 void getDocument( 27 void getDocument(
26 ui::devtools::protocol::ErrorString* error, 28 ui::devtools::protocol::ErrorString* error,
27 std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) override; 29 std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) override;
28 30
29 ash::WmShell* shell_; 31 ash::WmShell* shell_;
30 32
31 DISALLOW_COPY_AND_ASSIGN(AshDevToolsDOMAgent); 33 DISALLOW_COPY_AND_ASSIGN(AshDevToolsDOMAgent);
32 }; 34 };
33 35
34 } // namespace devtools 36 } // namespace devtools
35 } // namespace ash 37 } // namespace ash
36 38
37 #endif // ASH_COMMON_DEVTOOLS_DEVTOOLS_DOM_AGENT_H_ 39 #endif // ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_dom_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698