| // 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. |
| #ifndef COMPONENTS_LIVE_CAPTION_CAPTION_UTIL_H_ |
| #define COMPONENTS_LIVE_CAPTION_CAPTION_UTIL_H_ |
| #include "components/prefs/pref_service.h" |
| #include "ui/native_theme/caption_style.h" |
| #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ |
| extern const char kCaptionSettingsUrl[]; |
| #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || |
| std::optional<ui::CaptionStyle> GetCaptionStyleFromUserSettings( |
| // Returns whether the Live Caption feature is supported in Chrome. This can |
| // depend on e.g. Chrome feature flags, platform/OS, supported CPU instructions. |
| bool IsLiveCaptionFeatureSupported(); |
| std::string GetCaptionSettingsUrl(); |
| #endif // COMPONENTS_LIVE_CAPTION_CAPTION_UTIL_H_ |