mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
7 years ago
|
//
|
||
6 years ago
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
7 years ago
|
//
|
||
|
|
||
7 years ago
|
#import "OWSBubbleView.h"
|
||
|
|
||
7 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
7 years ago
|
@class ConversationStyle;
|
||
7 years ago
|
@class DisplayableText;
|
||
7 years ago
|
@class OWSBubbleShapeView;
|
||
7 years ago
|
@class OWSQuotedReplyModel;
|
||
7 years ago
|
@class TSAttachmentPointer;
|
||
|
@class TSQuotedMessage;
|
||
|
|
||
|
@protocol OWSQuotedMessageViewDelegate
|
||
|
|
||
|
- (void)didTapQuotedReply:(OWSQuotedReplyModel *)quotedReply
|
||
|
failedThumbnailDownloadAttachmentPointer:(TSAttachmentPointer *)attachmentPointer;
|
||
|
|
||
6 years ago
|
- (void)didCancelQuotedReply;
|
||
|
|
||
7 years ago
|
@end
|
||
7 years ago
|
|
||
7 years ago
|
@interface OWSQuotedMessageView : UIView
|
||
|
|
||
7 years ago
|
@property (nonatomic, nullable, weak) id<OWSQuotedMessageViewDelegate> delegate;
|
||
7 years ago
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
// Only needs to be called if we're going to render this instance.
|
||
|
- (void)createContents;
|
||
|
|
||
|
// Measurement
|
||
|
- (CGSize)sizeForMaxWidth:(CGFloat)maxWidth;
|
||
|
|
||
7 years ago
|
// Factory method for "message bubble" views.
|
||
7 years ago
|
+ (OWSQuotedMessageView *)quotedMessageViewForConversation:(OWSQuotedReplyModel *)quotedMessage
|
||
7 years ago
|
displayableQuotedText:(nullable DisplayableText *)displayableQuotedText
|
||
7 years ago
|
conversationStyle:(ConversationStyle *)conversationStyle
|
||
7 years ago
|
isOutgoing:(BOOL)isOutgoing
|
||
7 years ago
|
sharpCorners:(OWSDirectionalRectCorner)sharpCorners;
|
||
7 years ago
|
|
||
7 years ago
|
// Factory method for "message compose" views.
|
||
7 years ago
|
+ (OWSQuotedMessageView *)quotedMessageViewForPreview:(OWSQuotedReplyModel *)quotedMessage
|
||
|
conversationStyle:(ConversationStyle *)conversationStyle;
|
||
7 years ago
|
|
||
7 years ago
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|