blob: 5d0de0e01025793f4c13bb7414033339a9b30f4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_UI_DEVTOOLS_OVERLAY_AGENT_H_
#define COMPONENTS_UI_DEVTOOLS_OVERLAY_AGENT_H_
#include "components/ui_devtools/Overlay.h"
#include "components/ui_devtools/dom_agent.h"
namespace ui_devtools {
class UI_DEVTOOLS_EXPORT OverlayAgent
: public UiDevToolsBaseAgent<protocol::Overlay::Metainfo> {
public:
explicit OverlayAgent(DOMAgent* dom_agent);
~OverlayAgent() override;
// Overlay::Backend:
protocol::Response setInspectMode(
const protocol::String& in_mode,
protocol::Maybe<protocol::Overlay::HighlightConfig> in_highlightConfig)
override;
protocol::Response highlightNode(
std::unique_ptr<protocol::Overlay::HighlightConfig> highlight_config,
protocol::Maybe<int> node_id) override;
protocol::Response hideHighlight() override;
protected:
DOMAgent* dom_agent() const { return dom_agent_; }
private:
DOMAgent* const dom_agent_;
DISALLOW_COPY_AND_ASSIGN(OverlayAgent);
};
} // namespace ui_devtools
#endif // COMPONENTS_UI_DEVTOOLS_OVERLAY_AGENT_H_
|