blob: 5efa9333aed66c9cde450c64b8149481b26e5b0d [file] [log] [blame]
// Copyright 2020 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_INVALIDATION_REASON_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_INVALIDATION_REASON_H_
namespace blink {
// Notifies FontSelectorClient of detailed reason of FontSelection invalidation.
enum class FontInvalidationReason {
// The default reason without any specific details.
kGeneralInvalidation,
// A custom font has finished loading and is ready for use.
kFontFaceLoaded,
// A @font-face rule has been deleted.
kFontFaceDeleted,
// TODO(xiaochengh): Add more detailed entries for different callers, and
// implement different behaviors on FontSelectorClient.
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_INVALIDATION_REASON_H_