blob: f9a2da40bc3a09fdd68bba1e90a0c216e2614c9a [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_BADGES_BADGE_TYPE_UTIL_H_
#define IOS_CHROME_BROWSER_UI_BADGES_BADGE_TYPE_UTIL_H_
#import "ios/chrome/browser/infobars/infobar_type.h"
#import "ios/chrome/browser/ui/badges/badge_type.h"
// Returns the corresponding BadgeType for |infobar_type|, or kBadgeTypeNone
// if that InfobarType does not support badges.
BadgeType BadgeTypeForInfobarType(InfobarType infobar_type);
// Returns the corresponding InfobarType for |badge_type|. |badge_type| must
// not be kBadgeTypeNone.
InfobarType InfobarTypeForBadgeType(BadgeType badge_type);
#endif // IOS_CHROME_BROWSER_UI_BADGES_BADGE_TYPE_UTIL_H_