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

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_
