blob: 88416f607c84036d1a70d692cf4063bb9929c882 [file] [log] [blame]
// 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_SHARED_PUBLIC_COMMANDS_CONTEXTUAL_PANEL_ENTRYPOINT_IPH_COMMANDS_H_
#define IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_CONTEXTUAL_PANEL_ENTRYPOINT_IPH_COMMANDS_H_
#import "base/feature_list.h"
struct ContextualPanelItemConfiguration;
// Commands for the Contextual Panel Entrypoint's IPH.
@protocol ContextualPanelEntrypointIPHCommands
// Shows the Contextual Panel entrypoint's IPH, and returns YES if the IPH was
// actually shown.
- (BOOL)showContextualPanelEntrypointIPHWithConfig:
(ContextualPanelItemConfiguration*)config
anchorPoint:(CGPoint)anchorPoint
isBottomOmnibox:(BOOL)isBottomOmnibox;
// Dismisses the Contextual Panel entrypoint's IPH. (`animated` is YES to
// animate the dismissal, NO to dismiss immediately.)
- (void)dismissContextualPanelEntrypointIPH:(BOOL)animated;
@end
#endif // IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_CONTEXTUAL_PANEL_ENTRYPOINT_IPH_COMMANDS_H_