1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34

ash / components / arc / intent_helper / adaptive_icon_delegate.h [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_COMPONENTS_ARC_INTENT_HELPER_ADAPTIVE_ICON_DELEGATE_H_
#define ASH_COMPONENTS_ARC_INTENT_HELPER_ADAPTIVE_ICON_DELEGATE_H_

#include <vector>

#include "ash/components/arc/intent_helper/activity_icon_loader.h"
#include "base/functional/callback.h"

namespace gfx {
class ImageSkia;
}  // namespace gfx

namespace arc {

class AdaptiveIconDelegate {
 public:
  using AdaptiveIconDelegateCallback = base::OnceCallback<void(
      const std::vector<gfx::ImageSkia>& adaptive_icons)>;

  virtual ~AdaptiveIconDelegate() = default;

  // Generates adaptive icons from the |icons| and calls |callback|.
  virtual void GenerateAdaptiveIcons(
      const std::vector<internal::ActivityIconLoader::ActivityIconPtr>& icons,
      AdaptiveIconDelegateCallback callback) = 0;
};

}  // namespace arc

#endif  // ASH_COMPONENTS_ARC_INTENT_HELPER_ADAPTIVE_ICON_DELEGATE_H_