本文整理匯總了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;
}
示例2: onRequestGeolocationPermission
import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(
CefBrowser browser,
String requesting_url,
int request_id,
CefGeolocationCallback callback) {
return false;
}
示例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;
}
示例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);
}
示例5: onRequestGeolocationPermission
import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public boolean onRequestGeolocationPermission(CefBrowser browser, String requesting_url, int request_id, CefGeolocationCallback callback) {
return false;
}
示例6: onRequestGeolocationPermission
import org.cef.callback.CefGeolocationCallback; //導入依賴的package包/類
@Override
public void onRequestGeolocationPermission(CefBrowser browser,
String requesting_url,
int request_id,
CefGeolocationCallback callback) {
}
示例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);
示例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);
示例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);