blob: ff6d4fd3012a6c64633ed97451cf36d480a6f643 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <UIKit/UIKit.h>
#import "ios/chrome/browser/ui/coordinators/chrome_coordinator.h"
#import "ios/chrome/browser/ui/popup_menu/public/popup_menu_long_press_delegate.h"
@class BubblePresenter;
@class CommandDispatcher;
@protocol PopupMenuUIUpdating;
class WebStateList;
// Coordinator for the popup menu, handling the commands.
@interface PopupMenuCoordinator : ChromeCoordinator<PopupMenuLongPressDelegate>
// Dispatcher used by this coordinator to receive the PopupMenuCommands.
@property(nonatomic, weak) CommandDispatcher* dispatcher;
// The WebStateList this coordinator is handling.
@property(nonatomic, assign) WebStateList* webStateList;
// UI updater.
@property(nonatomic, weak) id<PopupMenuUIUpdating> UIUpdater;
// Bubble view presenter for the incognito tip.
@property(nonatomic, weak) BubblePresenter* bubblePresenter;
// Returns whether this coordinator is showing a popup menu.
- (BOOL)isShowingPopupMenu;