chromium/ios/chrome/browser/ui/settings/clear_browsing_data/pop_up_menu_control.h

// 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.

#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_CLEAR_BROWSING_DATA_POP_UP_MENU_CONTROL_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_CLEAR_BROWSING_DATA_POP_UP_MENU_CONTROL_H_

#import <UIKit/UIKit.h>

// PopUpMenuControl that displays a pop-up menu when tapped. It has static title
// on the left and the menu selection on the right.
@interface PopUpMenuControl : UIControl

// Menu to display when the cell is touched. The UIAction selected is displayed
// by a UIButton on the right side. By default, if no UIAction is selected, then
// UIButton displays the first UIAction.
@property(strong, nonatomic) UIMenu* menu;

// Title to display. Optional. Max of one line. Displayed on the left side of
// the cell.
- (void)setTitle:(NSString*)title;

@end

#endif  // IOS_CHROME_BROWSER_UI_SETTINGS_CLEAR_BROWSING_DATA_POP_UP_MENU_CONTROL_H_