native_theme_utils.h 798 B

123456789101112131415161718192021222324
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_NATIVE_THEME_NATIVE_THEME_UTILS_H_
  5. #define UI_NATIVE_THEME_NATIVE_THEME_UTILS_H_
  6. #include "base/strings/string_piece.h"
  7. #include "ui/native_theme/native_theme.h"
  8. #include "ui/native_theme/native_theme_export.h"
  9. namespace ui {
  10. // The following functions convert various values to strings intended for
  11. // logging. Do not retain the results for longer than the scope in which these
  12. // functions are called.
  13. // Converts NativeTheme::ColorScheme.
  14. base::StringPiece NATIVE_THEME_EXPORT
  15. NativeThemeColorSchemeName(NativeTheme::ColorScheme color_scheme);
  16. } // namespace ui
  17. #endif // UI_NATIVE_THEME_NATIVE_THEME_UTILS_H_