// Copyright © 2010-2015 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 { 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. /// true to allow the request and false to deny 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 URL that originally requested permission /// the unique ID for the permission request, as seen in void OnCancelGeolocationPermission(IWebBrowser browserControl, IBrowser browser, string requestingUrl, int requestId); } }