chromium/ios/chrome/browser/ui/reading_list/reading_list_list_item_accessibility_delegate.h

// 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_UI_READING_LIST_READING_LIST_LIST_ITEM_ACCESSIBILITY_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_LIST_ITEM_ACCESSIBILITY_DELEGATE_H_

@protocol ReadingListListItem;

// Protocol used to implement custom accessibility actions for cells set up by
// ReadingListListItems.
@protocol ReadingListListItemAccessibilityDelegate

// Returns true if owner is in edit mode.
- (BOOL)isEditing;

// Returns whether the entry is read.
- (BOOL)isItemRead:(id<ReadingListListItem>)item;

- (void)openItemInNewTab:(id<ReadingListListItem>)item;
- (void)openItemInNewIncognitoTab:(id<ReadingListListItem>)item;
- (void)openItemOffline:(id<ReadingListListItem>)item;
- (void)markItemRead:(id<ReadingListListItem>)item;
- (void)markItemUnread:(id<ReadingListListItem>)item;
- (void)deleteItem:(id<ReadingListListItem>)item;

@end

#endif  // IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_LIST_ITEM_ACCESSIBILITY_DELEGATE_H_