blob: efecbd6be59f209a5eafb992887ee0d09af31fd5 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toasts/api/toast_id.h"
#include <string>
#include "base/notreached.h"
std::string GetToastName(ToastId toast_id) {
switch (toast_id) {
case ToastId::kLinkCopied:
return "LinkCopied";
case ToastId::kImageCopied:
return "ImageCopied";
case ToastId::kLinkToHighlightCopied:
return "LinkToHighlightCopied";
case ToastId::kAddedToReadingList:
return "AddedToReadingList";
case ToastId::kNonMilestoneUpdate:
return "NonMilestoneUpdate";
case ToastId::kAddedToComparisonTable:
return "AddedToComparisonTable";
case ToastId::kClearBrowsingData:
return "ClearBrowsingData";
case ToastId::kPlusAddressOverride:
return "PlusAddressOverride";
case ToastId::kSyncEsbOn:
return "SyncEsbOn";
case ToastId::kSyncEsbOnWithoutActionButton:
return "SyncEsbOnWithoutActionButton";
case ToastId::kSyncEsbOff:
return "SyncEsbOff";
case ToastId::kTabGroupSyncTabRemoved:
return "TabGroupSyncTabRemoved";
case ToastId::kTabGroupSyncUserJoined:
return "TabGroupSyncUserJoined";
case ToastId::kTabGroupSyncRemovedFromGroup:
return "TabGroupSyncRemovedFromGroup";
case ToastId::kVideoFrameCopied:
return "VideoFrameCopied";
case ToastId::kClosePinnedTab:
return "ClosePinnedTab";
}
NOTREACHED();
}