// Copyright 2019 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_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODAL_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODAL_DELEGATE_H_
#import <Foundation/Foundation.h>
// Delegate to handle SendTabToSelf Modal actions.
@protocol SendTabToSelfModalDelegate
// Asks the delegate to dismiss the modal dialog.
- (void)dismissViewControllerAnimated;
// Asks the delegate to send the current tab to the device with `cacheGuid` and
// dismiss the dialog.
- (void)sendTabToTargetDeviceCacheGUID:(NSString*)cacheGuid
targetDeviceName:(NSString*)deviceName;
// Opens the page where the user can manage known target devices. This is done
// in a new tab to avoid exiting the current page, which the user possibly wants
// to share. The dialog is dismissed.
- (void)openManageDevicesTab;
@end
#endif // IOS_CHROME_BROWSER_UI_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_MODAL_DELEGATE_H_