blob: a3c32b8024c64ffb72fc98e3b7f01362e3b3d7bd [file] [log] [blame]
// 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_UI_CONTEXT_MENU_CONTEXT_MENU_UTILS_H_
#define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_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_UI_CONTEXT_MENU_CONTEXT_MENU_UTILS_H_