// Copyright © 2010-2017 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. namespace CefSharp { /// /// Implement this interface to handle events related to geolocation permission requests. /// The methods of this class will be called on the CEF UI thread. /// public interface IGeolocationHandler { /// /// Called when a page requests permission to access geolocation information. /// /// the browser control /// the browser object /// the URL requesting permission /// the unique ID for the permission request /// Callback interface used for asynchronous continuation of geolocation permission requests. /// Return true and call IGeolocationCallback.Continue() either in this method or at a later time to continue or cancel the request. Return false to cancel the request immediately. bool OnRequestGeolocationPermission(IWebBrowser browserControl, IBrowser browser, string requestingUrl, int requestId, IGeolocationCallback callback); /// /// Called when a geolocation access request is canceled. /// /// the browser control /// the browser object /// the unique ID for the permission request, as seen in void OnCancelGeolocationPermission(IWebBrowser browserControl, IBrowser browser, int requestId); } }