chromium/third_party/blink/renderer/core/navigation_api/navigation_intercept_options.idl

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/navigation-api/
callback NavigationInterceptHandler = Promise<void>();

dictionary NavigationInterceptOptions {
  NavigationInterceptHandler handler;
  NavigationFocusReset focusReset;
  NavigationScrollBehavior scroll;
  NavigationCommitBehavior commit;
};

enum NavigationFocusReset {
  "after-transition",
  "manual"
};

enum NavigationScrollBehavior {
  "after-transition",
  "manual"
};

enum NavigationCommitBehavior {
  "after-transition",
  "immediate"
};