Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "components/ui_devtools/overlay_agent.h" |
| 6 | |
| 7 | namespace ui_devtools { |
| 8 | |
| 9 | OverlayAgent::OverlayAgent(DOMAgent* dom_agent) : dom_agent_(dom_agent) { |
| 10 | DCHECK(dom_agent_); |
| 11 | } |
| 12 | |
Sorin Jianu | 64e6e759 | 2024-10-09 14:15:26 | [diff] [blame] | 13 | OverlayAgent::~OverlayAgent() = default; |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 14 | |
| 15 | protocol::Response OverlayAgent::setInspectMode( |
Pavel Feldman | 6026fe0 | 2019-02-08 07:19:16 | [diff] [blame] | 16 | const protocol::String& in_mode, |
Alex Rudenko | 23ebe502 | 2024-11-27 22:33:07 | [diff] [blame^] | 17 | std::unique_ptr<protocol::Overlay::HighlightConfig> in_highlightConfig) { |
Peter Boström | 77d2135 | 2024-11-13 22:26:11 | [diff] [blame] | 18 | NOTREACHED(); |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | protocol::Response OverlayAgent::highlightNode( |
| 22 | std::unique_ptr<protocol::Overlay::HighlightConfig> highlight_config, |
Alex Rudenko | 23ebe502 | 2024-11-27 22:33:07 | [diff] [blame^] | 23 | std::optional<int> node_id) { |
Peter Boström | 77d2135 | 2024-11-13 22:26:11 | [diff] [blame] | 24 | NOTREACHED(); |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | protocol::Response OverlayAgent::hideHighlight() { |
Johannes Henkel | d5fead7 | 2020-03-20 02:09:01 | [diff] [blame] | 28 | return protocol::Response::Success(); |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | } // namespace ui_devtools |