// Copyright 2021 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. #include "ui/native_theme/native_theme_utils.h" namespace ui { base::StringPiece NativeThemeColorSchemeName( NativeTheme::ColorScheme color_scheme) { switch (color_scheme) { case NativeTheme::ColorScheme::kDefault: return "kDefault"; case NativeTheme::ColorScheme::kLight: return "kLight"; case NativeTheme::ColorScheme::kDark: return "kDark"; case NativeTheme::ColorScheme::kPlatformHighContrast: return "kPlatformHighContrast"; default: NOTREACHED() << "Invalid NativeTheme::ColorScheme"; return ""; } } } // namespace ui