mirror of https://github.com/oxen-io/session-ios
Extract message bubble view.
parent
00327986d0
commit
7f0fa1228e
@ -0,0 +1,46 @@
|
||||
//
|
||||
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class ConversationViewItem;
|
||||
|
||||
typedef NS_ENUM(NSUInteger, OWSMessageGestureLocation) {
|
||||
// Message text, etc.
|
||||
OWSMessageGestureLocation_Default,
|
||||
OWSMessageGestureLocation_OversizeText,
|
||||
OWSMessageGestureLocation_Media,
|
||||
OWSMessageGestureLocation_QuotedReply,
|
||||
};
|
||||
|
||||
@interface OWSMessageBubbleView : UIView
|
||||
|
||||
@property (nonatomic, nullable) ConversationViewItem *viewItem;
|
||||
|
||||
@property (nonatomic) int contentWidth;
|
||||
|
||||
@property (nonatomic) NSCache *cellMediaCache;
|
||||
|
||||
@property (nonatomic, nullable, readonly) UIView *lastBodyMediaView;
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
||||
|
||||
- (void)configureViews;
|
||||
|
||||
- (void)loadContent;
|
||||
- (void)unloadContent;
|
||||
|
||||
- (CGSize)sizeForViewWidth:(int)viewWidth contentWidth:(int)contentWidth;
|
||||
|
||||
- (void)prepareForReuse;
|
||||
|
||||
- (OWSMessageGestureLocation)gestureLocationForLocation:(CGPoint)locationInMessageBubble;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue