mac: Implement webContents.startDrag
This commit is contained in:
parent
74ebbf9c78
commit
13c668f22b
6 changed files with 106 additions and 0 deletions
|
@ -39,6 +39,8 @@ class WebViewGuestDelegate;
|
|||
|
||||
namespace api {
|
||||
|
||||
class NativeImage;
|
||||
|
||||
class WebContents : public mate::TrackableObject<WebContents>,
|
||||
public CommonWebContentsDelegate,
|
||||
public content::WebContentsObserver {
|
||||
|
@ -142,6 +144,9 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
|||
void BeginFrameSubscription(mate::Arguments* args);
|
||||
void EndFrameSubscription();
|
||||
|
||||
// Dragging native items.
|
||||
void StartDrag(const base::FilePath& file, mate::Handle<NativeImage> image);
|
||||
|
||||
// Methods for creating <webview>.
|
||||
void SetSize(const SetSizeParams& params);
|
||||
bool IsGuest() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue