vector_icon_utils.h 561 B

1234567891011121314151617181920
  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_GFX_VECTOR_ICON_UTILS_H_
  5. #define UI_GFX_VECTOR_ICON_UTILS_H_
  6. #include "ui/gfx/gfx_export.h"
  7. namespace gfx {
  8. struct VectorIcon;
  9. // Calculates the size that will be default for |icon|, in dip. This will be the
  10. // smallest icon size |icon| contains.
  11. GFX_EXPORT int GetDefaultSizeOfVectorIcon(const gfx::VectorIcon& icon);
  12. } // namespace gfx
  13. #endif // UI_GFX_VECTOR_ICON_UTILS_H_