blob: 238c7776e40a13ca5dde56684a52840ce11cb30a [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_
#define IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
namespace web {
class WebState;
}
// Controller for displaying system Context Menu when the user is long pressing
// on an element. This is working by adding an interaction to the whole web view
// and then only adding focus on the element being long pressed.
API_AVAILABLE(ios(13.0)) @interface CRWContextMenuController : NSObject
- (instancetype)initWithWebView:(WKWebView*)webView
webState:(web::WebState*)webState;
@end
#endif // IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_