當前位置: 首頁>>代碼示例>>Java>>正文


Java CefGeolocationCallback類代碼示例

本文整理匯總了Java中org.cef.callback.CefGeolocationCallback的典型用法代碼示例。如果您正苦於以下問題:Java CefGeolocationCallback類的具體用法?Java CefGeolocationCallback怎麽用?Java CefGeolocationCallback使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CefGeolocationCallback類屬於org.cef.callback包,在下文中一共展示了CefGeolocationCallback類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(CefBrowser browser,
                                           String requesting_url,
                                           int request_id,
                                           CefGeolocationCallback callback) {
  final CefGeolocationCallback cb = callback;
  final String reqUrl = requesting_url;
  SwingUtilities.invokeLater(new Runnable() {
    @Override
    public void run() {
      int dialogResult = JOptionPane.showConfirmDialog(owner_,
          "The URL \n" + reqUrl +
          "\nwants to request your geolocation." +
          "\nDo you want to proceed?",
          "Geolocation requested",
          JOptionPane.YES_NO_OPTION,
          JOptionPane.QUESTION_MESSAGE);
      cb.Continue(dialogResult == JOptionPane.YES_OPTION);
    }
  });
  return true;
}
 
開發者ID:viglucci,項目名稱:app-jcef-example,代碼行數:23,代碼來源:GeolocationHandler.java

示例2: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(
    CefBrowser browser,
    String requesting_url,
    int request_id,
    CefGeolocationCallback callback) {
  return false;
}
 
開發者ID:viglucci,項目名稱:app-jcef-example,代碼行數:9,代碼來源:CefGeolocationHandlerAdapter.java

示例3: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(CefBrowser browser,
                                           String requesting_url,
                                           int request_id,
                                           CefGeolocationCallback callback) {
  if (geolocationHandler_ != null && browser != null) {
    return geolocationHandler_.onRequestGeolocationPermission(browser,
        requesting_url, request_id, callback);
  }
  return false;
}
 
開發者ID:viglucci,項目名稱:app-jcef-example,代碼行數:12,代碼來源:CefClient.java

示例4: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public void onRequestGeolocationPermission(CefBrowser browser,
		                           String requesting_url, 
                                                  int request_id,
		                           CefGeolocationCallback callback) {
	if (geolocationHandler_ != null && browser != null)
		geolocationHandler_.onRequestGeolocationPermission(browser, requesting_url, request_id, callback);
}
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:9,代碼來源:CefClient.java

示例5: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(CefBrowser browser, String requesting_url, int request_id, CefGeolocationCallback callback) {
    return false;
}
 
開發者ID:Panda-Programming-Language,項目名稱:Pandomium,代碼行數:5,代碼來源:CefGeolocationHandlerAdapter.java

示例6: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public void onRequestGeolocationPermission(CefBrowser browser,
                                           String requesting_url,
                                           int request_id,
                                           CefGeolocationCallback callback) {
}
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:7,代碼來源:CefGeolocationHandlerAdapter.java

示例7: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
/**
 * Called when a page requests permission to access geolocation information.
 * 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.
 *
 * @param browser        The corresponding browser.
 * @param requesting_url is the URL requesting permission.
 * @param request_id     is the unique ID for the permission request.
 * @param callback       Call CefGeolocationCallback.Continue to allow or deny the
 *                       permission request.
 */
public boolean onRequestGeolocationPermission(CefBrowser browser, String requesting_url, int request_id, CefGeolocationCallback callback);
 
開發者ID:Panda-Programming-Language,項目名稱:Pandomium,代碼行數:14,代碼來源:CefGeolocationHandler.java

示例8: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
/**
 * Called when a page requests permission to access geolocation information.
 * 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.
 * @param browser The corresponding browser.
 * @param requesting_url is the URL requesting permission.
 * @param request_id is the unique ID for the permission request.
 * @param callback Call CefGeolocationCallback.Continue to allow or deny the
 * permission request.
 */
public boolean onRequestGeolocationPermission(
    CefBrowser browser,
    String requesting_url,
    int request_id,
    CefGeolocationCallback callback);
 
開發者ID:viglucci,項目名稱:app-jcef-example,代碼行數:17,代碼來源:CefGeolocationHandler.java

示例9: onRequestGeolocationPermission

import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
/**
 * Called when a page requests permission to access geolocation information.
 * @param browser The corresponding browser.
 * @param requesting_url is the URL requesting permission.
 * @param request_id is the unique ID for the permission request.
 * @param callback Call CefGeolocationCallback.Continue to allow or deny the 
 * permission request.
 */
public void onRequestGeolocationPermission(CefBrowser browser,
                                           String requesting_url,
                                           int request_id,
                                           CefGeolocationCallback callback);
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:13,代碼來源:CefGeolocationHandler.java


注:本文中的org.cef.callback.CefGeolocationCallback類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。