1234567891011121314151617181920212223242526272829303132 |
- /*
- * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <LibJS/Forward.h>
- #include <LibWeb/Bindings/PlatformObject.h>
- namespace Web::Internals {
- class Inspector final : public Bindings::PlatformObject {
- WEB_PLATFORM_OBJECT(Inspector, Bindings::PlatformObject);
- JS_DECLARE_ALLOCATOR(Inspector);
- public:
- virtual ~Inspector() override;
- void inspector_loaded();
- void inspect_dom_node(i32 node_id, Optional<i32> const& pseudo_element);
- void execute_console_script(String const& script);
- private:
- explicit Inspector(JS::Realm&);
- virtual void initialize(JS::Realm&) override;
- };
- }
|