blob: fc889ec6e612e298ec5ff5eab2bb2371c7618fa9 [file] [log] [blame]
// Copyright 2017 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_ACTIVITY_SERVICE_COMMANDS_H_
#define IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_ACTIVITY_SERVICE_COMMANDS_H_
@class ShareHighlightCommand;
@class ActivityServiceShareURLCommand;
@protocol ActivityServiceCommands <NSObject>
// Stops the existing SharingCoordinator and creates a new one. This is used
// when a sharing coordinator is already started, but the user taps again on the
// share button.
- (void)stopAndStartSharingCoordinator;
// Shows the share sheet for the current page.
- (void)showShareSheet;
// Shows the share sheet for a link to the Chrome App in the App Store.
- (void)showShareSheetForChromeApp;
// Shows the share sheet for the page and currently highlighted text.
- (void)showShareSheetForHighlight:(ShareHighlightCommand*)command;
// Shows the share sheet for the URL sharing flow for the given command.
- (void)showShareSheetForURL:(ActivityServiceShareURLCommand*)command;
@end
#endif // IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_ACTIVITY_SERVICE_COMMANDS_H_