// ui/gfx/mojom/swap_result.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

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

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef UI_GFX_MOJOM_SWAP_RESULT_MOJOM_DATA_VIEW_H_
#define UI_GFX_MOJOM_SWAP_RESULT_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "ui/gfx/mojom/swap_result.mojom-shared-internal.h"


namespace gfx::mojom {


}  // gfx::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace gfx::mojom {


enum class SwapResult : int32_t {
  
  ACK = 0,
  
  FAILED = 1,
  
  SKIPPED = 2,
  
  NAK_RECREATE_BUFFERS = 3,
  kMinValue = 0,
  kMaxValue = 3,
};

 std::ostream& operator<<(std::ostream& os, SwapResult value);
inline bool IsKnownEnumValue(SwapResult value) {
  return internal::SwapResult_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(SwapResult) {
  return true;
}


}  // gfx::mojom

#endif  // UI_GFX_MOJOM_SWAP_RESULT_MOJOM_DATA_VIEW_H_