text: // third_party/blink/public/mojom/input/focus_type.mojom.js is auto generated by mojom_bindings_generator.py, do not edit
  
  // Copyright 2014 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  'use strict';
  
  (function() {
    var mojomId = 'third_party/blink/public/mojom/input/focus_type.mojom';
    if (mojo.internal.isMojomLoaded(mojomId)) {
      console.warn('The following mojom is loaded multiple times: ' + mojomId);
      return;
    }
    mojo.internal.markMojomLoaded(mojomId);
    var bindings = mojo;
    var associatedBindings = mojo;
    var codec = mojo.internal;
    var validator = mojo.internal;
  
    var exports = mojo.internal.exposeNamespace('blink.mojom');
  
  
    var FocusType = {};
    FocusType.kNone = 0;
    FocusType.kForward = 1;
    FocusType.kBackward = 2;
    FocusType.kSpatialNavigation = 3;
    FocusType.kMouse = 4;
    FocusType.kAccessKey = 5;
    FocusType.kPage = 6;
    FocusType.MIN_VALUE = 0;
    FocusType.MAX_VALUE = 6;
  
    FocusType.isKnownEnumValue = function(value) {
      switch (value) {
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
        return true;
      }
      return false;
    };
  
    FocusType.toKnownEnumValue = function(value) {
      return value;
    };
  
    FocusType.validate = function(enumValue) {
      const isExtensible = false;
      if (isExtensible || this.isKnownEnumValue(enumValue))
        return validator.validationError.NONE;
  
      return validator.validationError.UNKNOWN_ENUM_VALUE;
    };
  
    exports.FocusType = FocusType;
  })();