chromium/third_party/blink/public/mojom/input/focus_type.mojom

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

module blink.mojom;

enum FocusType {
  // Catch-all focus type. Includes accessibility-based focusing.
  kNone = 0,
  // element.focus()/element.blur() in JavaScript
  kScript,
  // Sequential navigation with TAB, or Shift + TAB.
  kForward,
  kBackward,
  // Spatial navigation.
  kSpatialNavigation,
  // Mouse press
  kMouse,
  // Access key
  kAccessKey,
  // Re-focus by a page focus
  kPage,
};