Example #1
0
 /// <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 vector.
 /// </summary>
 protected abstract void OnDraggableRegionsChanged(CefBrowser browser, CefDraggableRegion[] regions);
Example #2
0
 /// <summary>
 /// Called when a geolocation access request is canceled. |request_id| is the
 /// unique ID for the permission request.
 /// </summary>
 protected abstract void OnCancelGeolocationPermission(CefBrowser browser, int requestId);
Example #3
0
 /// <summary>
 /// Called when an external drag event enters the browser window. |dragData|
 /// contains the drag event data and |mask| represents the type of drag
 /// operation. Return false for default drag handling behavior or true to
 /// cancel the drag event.
 /// </summary>
 protected abstract bool OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask);
Example #4
0
 /// <summary>
 /// Called when a page requests permission to access geolocation information.
 /// |requesting_url| is the URL requesting permission and |request_id| is the
 /// unique ID for the permission request. Return true and call
 /// CefGeolocationCallback::Continue() either in this method or at a later
 /// time to continue or cancel the request. Return false to cancel the request
 /// immediately.
 /// </summary>
 protected abstract bool OnRequestGeolocationPermission(CefBrowser browser, string requestingUrl, int requestId, CefGeolocationCallback callback);
Example #5
0
 /// <summary>
 /// Called when printing has started for the specified |browser|. This method
 /// will be called before the other OnPrint*() methods and irrespective of how
 /// printing was initiated (e.g. CefBrowserHost::Print(), JavaScript
 /// window.print() or PDF extension print button).
 /// </summary>
 protected virtual void OnPrintStart(CefBrowser browser)
 {
 }
 /// <summary>
 /// Called when the browser component has received focus.
 /// </summary>
 protected virtual void OnGotFocus(CefBrowser browser)
 {
 }
 /// <summary>
 /// Called when the browser component is requesting focus. |source| indicates
 /// where the focus request is originating from. Return false to allow the
 /// focus to be set or true to cancel setting the focus.
 /// </summary>
 protected virtual bool OnSetFocus(CefBrowser browser, CefFocusSource source)
 {
     return(false);
 }
 /// <summary>
 /// Called when the browser component is about to loose focus. For instance, if
 /// focus was on the last HTML element and the user pressed the TAB key. |next|
 /// will be true if the browser is giving focus to the next component and false
 /// if the browser is giving focus to the previous component.
 /// </summary>
 protected virtual void OnTakeFocus(CefBrowser browser, bool next)
 {
 }