#ifndef ASH_APP_LIST_APP_LIST_ITEM_UTIL_H_
#define ASH_APP_LIST_APP_LIST_ITEM_UTIL_H_
#include <string>
#include "base/values.h"
#include "ui/base/clipboard/clipboard_format_type.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/os_exchange_data.h"
namespace ash {
enum class DraggableAppType { kAppGridItem = 0, kFolderAppGridItem = 1, kMax };
struct DraggableAppItemInfo {
DraggableAppItemInfo(const std::string& app_id, const DraggableAppType type);
~DraggableAppItemInfo();
DraggableAppItemInfo(const DraggableAppItemInfo& other);
DraggableAppItemInfo(DraggableAppItemInfo&& other);
DraggableAppItemInfo& operator=(const DraggableAppItemInfo& other);
bool IsValid() const;
std::string app_id;
DraggableAppType type = DraggableAppType::kAppGridItem;
};
const ui::ClipboardFormatType& GetAppItemFormatType();
std::optional<DraggableAppItemInfo> GetAppInfoFromDropDataForAppType(
const ui::OSExchangeData& data);
}
#endif