mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibDevTools: Support inspecting DOM node box models and computed styles
This commit is contained in:
parent
3f8b65e45c
commit
afb0a0a394
Notes:
github-actions[bot]
2025-02-24 17:06:41 +00:00
Author: https://github.com/trflynn89
Commit: afb0a0a394
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3666
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 170 additions and 7 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <LibDevTools/Forward.h>
|
||||
#include <LibWeb/CSS/Selector.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWebView/ViewImplementation.h>
|
||||
|
||||
namespace DevTools {
|
||||
|
||||
|
@ -28,6 +29,10 @@ public:
|
|||
using OnTabInspectionComplete = Function<void(ErrorOr<JsonValue>)>;
|
||||
virtual void inspect_tab(TabDescription const&, OnTabInspectionComplete) const { }
|
||||
|
||||
using OnDOMNodeInspectionComplete = Function<void(ErrorOr<WebView::ViewImplementation::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 { }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue