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

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

Issue 2469883002: Add test for ash devtools DOM agent getDocument method (Closed)
Patch Set: Remove unnecessary code 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
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_ASH_DEVTOOLS_DOM_AGENT_H_ 5 #ifndef ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_
6 #define ASH_COMMON_DEVTOOLS_ASH_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 "base/compiler_specific.h"
9 #include "components/ui_devtools/DOM.h" 10 #include "components/ui_devtools/DOM.h"
10 #include "components/ui_devtools/devtools_base_agent.h" 11 #include "components/ui_devtools/devtools_base_agent.h"
11 12
12 namespace ash { 13 namespace ash {
13 namespace devtools { 14 namespace devtools {
14 15
15 class AshDevToolsDOMAgent : public ui::devtools::UiDevToolsBaseAgent< 16 class ASH_EXPORT AshDevToolsDOMAgent
16 ui::devtools::protocol::DOM::Metainfo> { 17 : public NON_EXPORTED_BASE(ui::devtools::UiDevToolsBaseAgent<
18 ui::devtools::protocol::DOM::Metainfo>) {
17 public: 19 public:
18 explicit AshDevToolsDOMAgent(ash::WmShell* shell); 20 explicit AshDevToolsDOMAgent(ash::WmShell* shell);
19 ~AshDevToolsDOMAgent() override; 21 ~AshDevToolsDOMAgent() override;
20 22
21 private:
22 std::unique_ptr<ui::devtools::protocol::DOM::Node> BuildInitialTree();
23
24 // DOM::Backend 23 // DOM::Backend
25 void enable(ui::devtools::protocol::ErrorString* error) override {} 24 void enable(ui::devtools::protocol::ErrorString* error) override {}
26 void disable(ui::devtools::protocol::ErrorString* error) override {} 25 void disable(ui::devtools::protocol::ErrorString* error) override {}
27 void getDocument( 26 void getDocument(
28 ui::devtools::protocol::ErrorString* error, 27 ui::devtools::protocol::ErrorString* error,
29 std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) override; 28 std::unique_ptr<ui::devtools::protocol::DOM::Node>* out_root) override;
30 29
30 private:
31 std::unique_ptr<ui::devtools::protocol::DOM::Node> BuildInitialTree();
32
31 ash::WmShell* shell_; 33 ash::WmShell* shell_;
32 34
33 DISALLOW_COPY_AND_ASSIGN(AshDevToolsDOMAgent); 35 DISALLOW_COPY_AND_ASSIGN(AshDevToolsDOMAgent);
34 }; 36 };
35 37
36 } // namespace devtools 38 } // namespace devtools
37 } // namespace ash 39 } // namespace ash
38 40
39 #endif // ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_ 41 #endif // ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_DOM_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698