Focus.h 431 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/DeprecatedString.h>
  8. #include <AK/Optional.h>
  9. #include <LibWeb/Forward.h>
  10. namespace Web::HTML {
  11. void run_focusing_steps(DOM::Node* new_focus_target, DOM::Node* fallback_target = nullptr, Optional<DeprecatedString> focus_trigger = {});
  12. void run_unfocusing_steps(DOM::Node* old_focus_target);
  13. }