holding_space_progress_indicator_util.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2022 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_SYSTEM_HOLDING_SPACE_HOLDING_SPACE_PROGRESS_INDICATOR_UTIL_H_
  5. #define ASH_SYSTEM_HOLDING_SPACE_HOLDING_SPACE_PROGRESS_INDICATOR_UTIL_H_
  6. #include <memory>
  7. namespace ash {
  8. class HoldingSpaceController;
  9. class HoldingSpaceItem;
  10. class ProgressIndicator;
  11. namespace holding_space_util {
  12. // Returns a `ProgressIndicator` instance which paints indication of progress
  13. // for all holding space items in the model attached to the specified
  14. // `controller`.
  15. std::unique_ptr<ProgressIndicator> CreateProgressIndicatorForController(
  16. HoldingSpaceController* controller);
  17. // Returns a `ProgressIndicator` instance which paints indication of progress
  18. // for the specified holding space `item`.
  19. std::unique_ptr<ProgressIndicator> CreateProgressIndicatorForItem(
  20. const HoldingSpaceItem* item);
  21. } // namespace holding_space_util
  22. } // namespace ash
  23. #endif // ASH_SYSTEM_HOLDING_SPACE_HOLDING_SPACE_PROGRESS_INDICATOR_UTIL_H_