blob: 261e8c4e8f21951c228fb2fdbc85d4b50792763e [file] [log] [blame]
// Copyright 2018 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_OMNIBOX_OMNIBOX_CONSUMER_H_
#define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONSUMER_H_
#import <UIKit/UIKit.h>
@protocol OmniboxConsumer<NSObject>
// Notifies the consumer to update the autocomplete icon for the currently
// highlighted autocomplete result with given accessibility identifier.
- (void)updateAutocompleteIcon:(UIImage*)icon
withAccessibilityIdentifier:(NSString*)accessibilityIdentifier;
// Notifies the consumer to update after the search-by-image support status
// changes. (This is usually when the default search engine changes).
- (void)updateSearchByImageSupported:(BOOL)searchByImageSupported;
// Notifies the consumer to update after the Lens support status
// changes. (This is usually when the default search engine changes).
- (void)updateLensImageSupported:(BOOL)lensImageSupported;
// Notifies the consumer to set the following image as an image
// in an omnibox with empty text
- (void)setEmptyTextLeadingImage:(UIImage*)icon;
// Notifies the consumer to update the text immediately.
- (void)updateText:(NSAttributedString*)text;
@end
#endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONSUMER_H_