blob: cd25f29826155a2a365d5170e992082ad65c2b73 [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.
#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_ADAPTOR_H_
#define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_ADAPTOR_H_
#import "ios/chrome/browser/ui/popup_menu/public/popup_menu_ui_updating.h"
#import "ios/chrome/browser/ui/toolbar/public/toolbar_coordinating.h"
@class CommandDispatcher;
@protocol ToolbarCoordinatee;
// This object is an interface between multiple toolbars and the objects which
// want to interact with them without having to know to which one specifically
// send the call.
@interface ToolbarCoordinatorAdaptor
: NSObject<PopupMenuUIUpdating, ToolbarCoordinating>
- (instancetype)initWithDispatcher:(CommandDispatcher*)dispatcher;
// Adds a |toolbarCoordinator| to the set of coordinators this object is
// interfacing with.
- (void)addToolbarCoordinator:(id<ToolbarCoordinatee>)toolbarCoordinator;
@end
#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_ADAPTOR_H_