rounded_corner_utils.h 784 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 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 ASH_PUBLIC_CPP_ROUNDED_CORNER_UTILS_H_
  5. #define ASH_PUBLIC_CPP_ROUNDED_CORNER_UTILS_H_
  6. #include "ash/public/cpp/ash_public_export.h"
  7. namespace aura {
  8. class Window;
  9. }
  10. namespace ui {
  11. class Layer;
  12. }
  13. namespace ash {
  14. // Puts rounded corners with |radius| on |layer|, and on |shadow_window|'s
  15. // shadow if it has one. Enables fast rounded corners on |layer|.
  16. ASH_PUBLIC_EXPORT void SetCornerRadius(aura::Window* shadow_window,
  17. ui::Layer* layer,
  18. int radius);
  19. } // namespace ash
  20. #endif // ASH_PUBLIC_CPP_ROUNDED_CORNER_UTILS_H_