mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:34:55 +00:00
73a156fdc5
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed. Browser Process (main process) - Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides - New IResourceRequestHandler interface added, not plumbed in yet - CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning BrowserSubprocess (render process) - SendProcessMessage was moved from CefBrowser to CefFrame - OnBrowserCreated added extraInfo param The BrowserSubprocess changes for this upgrade should be complete
39 lines
2.0 KiB
C#
39 lines
2.0 KiB
C#
// Copyright © 2014 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System.Collections.Generic;
|
|
using CefSharp.Enums;
|
|
|
|
namespace CefSharp
|
|
{
|
|
/// <summary>
|
|
/// Implement this interface to handle events related to dragging.
|
|
/// The methods of this class will be called on the UI thread.
|
|
/// </summary>
|
|
public interface IDragHandler
|
|
{
|
|
/// <summary>
|
|
/// Called when an external drag event enters the browser window.
|
|
/// </summary>
|
|
/// <param name="chromiumWebBrowser">the ChromiumWebBrowser control</param>
|
|
/// <param name="browser">the browser object</param>
|
|
/// <param name="dragData">contains the drag event data</param>
|
|
/// <param name="mask">represents the type of drag operation</param>
|
|
/// <returns>Return false for default drag handling behavior or true to cancel the drag event. </returns>
|
|
bool OnDragEnter(IWebBrowser chromiumWebBrowser, IBrowser browser, IDragData dragData, DragOperationsMask mask);
|
|
|
|
/// <summary>
|
|
/// Called whenever draggable regions for the browser window change.
|
|
/// These can be specified using the '-webkit-app-region: drag/no-drag' CSS-property.
|
|
/// If draggable regions are never defined in a document this method will also never be called.
|
|
/// If the last draggable region is removed from a document this method will be called with an empty IList.
|
|
/// </summary>
|
|
/// <param name="chromiumWebBrowser">the ChromiumWebBrowser control</param>
|
|
/// <param name="browser">the browser object</param>
|
|
/// <param name="frame">The frame</param>
|
|
/// <param name="regions">List of <see cref="DraggableRegion"/> objects or null if last region was removed.</param>
|
|
void OnDraggableRegionsChanged(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IList<DraggableRegion> regions);
|
|
}
|
|
}
|