blob: 3bb9313bdb7f958dcfcba6ee89a07bf74456741c [file] [log] [blame]
// Copyright 2022 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_OMNIBOX_MODEL_SUGGESTIONS_OMNIBOX_PEDAL_H_
#define IOS_CHROME_BROWSER_OMNIBOX_MODEL_SUGGESTIONS_OMNIBOX_PEDAL_H_
@protocol OmniboxPedal <NSObject>
@property(nonatomic, readonly) NSString* title;
@property(nonatomic, readonly) NSString* subtitle;
@property(nonatomic, readonly) void (^action)(void);
/// This is actually an `Int`-casted `OmniboxPedalId`, but that C++ `enum class`
/// can't be used due to swift interop.
@property(nonatomic, readonly, assign) NSInteger type;
@end
#endif // IOS_CHROME_BROWSER_OMNIBOX_MODEL_SUGGESTIONS_OMNIBOX_PEDAL_H_