mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibDevTools was implicitly including generated IPC endpoints from LibWebView. This is not a dependency declared in the CMakeLists.txt. So updates to the IPC file might not have caused the endpoint header to be regenerated by the time LibDevTools is compiled, resulting in a build error. This patch removes that implicit dependency entirely.
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Error.h>
|
|
#include <AK/Function.h>
|
|
#include <AK/JsonValue.h>
|
|
#include <AK/Vector.h>
|
|
#include <LibDevTools/Actors/CSSPropertiesActor.h>
|
|
#include <LibDevTools/Actors/PageStyleActor.h>
|
|
#include <LibDevTools/Actors/TabActor.h>
|
|
#include <LibDevTools/Forward.h>
|
|
#include <LibWeb/CSS/Selector.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace DevTools {
|
|
|
|
class DevToolsDelegate {
|
|
public:
|
|
virtual ~DevToolsDelegate() = default;
|
|
|
|
virtual Vector<TabDescription> tab_list() const { return {}; }
|
|
virtual Vector<CSSProperty> css_property_list() const { return {}; }
|
|
|
|
using OnTabInspectionComplete = Function<void(ErrorOr<JsonValue>)>;
|
|
virtual void inspect_tab(TabDescription const&, OnTabInspectionComplete) const { }
|
|
|
|
using OnDOMNodeInspectionComplete = Function<void(ErrorOr<DOMNodeProperties>)>;
|
|
virtual void inspect_dom_node(TabDescription const&, Web::UniqueNodeID, Optional<Web::CSS::Selector::PseudoElement::Type>, OnDOMNodeInspectionComplete) const { }
|
|
virtual void clear_inspected_dom_node(TabDescription const&) const { }
|
|
|
|
virtual void highlight_dom_node(TabDescription const&, Web::UniqueNodeID, Optional<Web::CSS::Selector::PseudoElement::Type>) const { }
|
|
virtual void clear_highlighted_dom_node(TabDescription const&) const { }
|
|
};
|
|
|
|
}
|