#ifndef CONTENT_APP_SHIM_REMOTE_COCOA_WEB_CONTENTS_VIEW_COCOA_H_
#define CONTENT_APP_SHIM_REMOTE_COCOA_WEB_CONTENTS_VIEW_COCOA_H_
#include "base/memory/raw_ptr.h"
#include "content/common/content_export.h"
#include "content/common/web_contents_ns_view_bridge.mojom.h"
#import "ui/base/cocoa/base_view.h"
#import "ui/base/cocoa/views_hostable.h"
namespace content {
struct DropData;
}
namespace remote_cocoa::mojom {
class WebContentsNSViewHost;
}
namespace url {
class Origin;
}
@class WebDragSource;
CONTENT_EXPORT
@interface WebContentsViewCocoa
: BaseView <ViewsHostable, NSDraggingSource, NSDraggingDestination>
- (void)setHost:(remote_cocoa::mojom::WebContentsNSViewHost*)host;
- (void)setMouseDownCanMoveWindow:(BOOL)canMove;
- (void)enableDroppedScreenShotCopier;
- (instancetype)initWithViewsHostableView:(ui::ViewsHostableView*)v;
- (void)registerDragTypes;
- (void)startDragWithDropData:(const content::DropData&)dropData
sourceOrigin:(const url::Origin&)sourceOrigin
dragOperationMask:(NSDragOperation)operationMask
image:(NSImage*)image
offset:(NSPoint)offset
isPrivileged:(BOOL)isPrivileged;
- (void)clearViewsHostableView;
- (void)viewDidBecomeFirstResponder:(NSNotification*)notification;
- (void)performDelayedSetWebContentsOccluded;
- (BOOL)willSetWebContentsOccludedAfterDelayForTesting;
- (void)updateWebContentsVisibility:(remote_cocoa::mojom::Visibility)visibility;
@end
@interface NSWindow (WebContentsViewCocoa)
- (NSArray<WebContentsViewCocoa*>*)webContentsViewCocoa;
- (BOOL)containsWebContentsViewCocoa;
@end
#endif