chromium/ios/chrome/browser/context_menu/ui_bundled/context_menu_utils.h

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

#ifndef IOS_CHROME_BROWSER_CONTEXT_MENU_UI_BUNDLED_CONTEXT_MENU_UTILS_H_
#define IOS_CHROME_BROWSER_CONTEXT_MENU_UI_BUNDLED_CONTEXT_MENU_UTILS_H_

#include <UIKit/UIKit.h>

namespace web {
struct ContextMenuParams;
}

// Returns the title for the context menu `params`.
NSString* GetContextMenuTitle(web::ContextMenuParams params);

// Returns the subtitle for the context menu `params`.
NSString* GetContextMenuSubtitle(web::ContextMenuParams params);

// Returns whether the title for context menu `params` is an image title.
bool IsImageTitle(web::ContextMenuParams params);

#endif  // IOS_CHROME_BROWSER_CONTEXT_MENU_UI_BUNDLED_CONTEXT_MENU_UTILS_H_