コード例 #1
0
        /// <summary>
        /// Request a one-time geolocation update. This function bypasses any user
        /// permission checks so should only be used by code that is allowed to access
        /// location information.
        /// </summary>
        public static bool GetGeolocation(CefGetGeolocationCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }

            return(libcef.get_geolocation(callback.ToNative()) != 0);
        }
コード例 #2
0
ファイル: CefRuntime.cs プロジェクト: whztt07/SDK
        /// <summary>
        /// Request a one-time geolocation update. This function bypasses any user
        /// permission checks so should only be used by code that is allowed to access
        /// location information.
        /// </summary>
        public static bool GetGeolocation(CefGetGeolocationCallback callback)
        {
            if (callback == null) throw new ArgumentNullException("callback");

            return libcef.get_geolocation(callback.ToNative()) != 0;
        }