org.chromium.chrome.browser.tabmodel.document.ActivityDelegate Java Examples
The following examples show how to use
org.chromium.chrome.browser.tabmodel.document.ActivityDelegate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IntentHandler.java From delion with Apache License 2.0 | 6 votes |
/** * Retrieve the URL from the Intent, which may be in multiple locations. * @param intent Intent to examine. * @return URL from the Intent, or null if a valid URL couldn't be found. */ public static String getUrlFromIntent(Intent intent) { if (intent == null) return null; String url = getUrlFromVoiceSearchResult(intent); if (url == null) url = ActivityDelegate.getInitialUrlForDocument(intent); if (url == null) url = getUrlForCustomTab(intent); if (url == null) url = intent.getDataString(); if (url == null) return null; url = url.trim(); if (isGoogleChromeScheme(url)) { url = getUrlFromGoogleChromeSchemeUrl(url); } return TextUtils.isEmpty(url) ? null : url; }
Example #2
Source File: IntentHandler.java From AndroidChromium with Apache License 2.0 | 6 votes |
/** * Retrieve the URL from the Intent, which may be in multiple locations. * @param intent Intent to examine. * @return URL from the Intent, or null if a valid URL couldn't be found. */ public static String getUrlFromIntent(Intent intent) { if (intent == null) return null; String url = getUrlFromVoiceSearchResult(intent); if (url == null) url = ActivityDelegate.getInitialUrlForDocument(intent); if (url == null) url = getUrlForCustomTab(intent); if (url == null) url = intent.getDataString(); if (url == null) return null; url = url.trim(); if (isGoogleChromeScheme(url)) { url = getUrlFromGoogleChromeSchemeUrl(url); } return TextUtils.isEmpty(url) ? null : url; }
Example #3
Source File: IntentHandler.java From 365browser with Apache License 2.0 | 6 votes |
/** * Retrieve the URL from the Intent, which may be in multiple locations. * @param intent Intent to examine. * @return URL from the Intent, or null if a valid URL couldn't be found. */ public static String getUrlFromIntent(Intent intent) { if (intent == null) return null; String url = getUrlFromVoiceSearchResult(intent); if (url == null) url = ActivityDelegate.getInitialUrlForDocument(intent); if (url == null) url = getUrlForCustomTab(intent); if (url == null) url = intent.getDataString(); if (url == null) return null; url = url.trim(); if (isGoogleChromeScheme(url)) { url = getUrlFromGoogleChromeSchemeUrl(url); } return TextUtils.isEmpty(url) ? null : url; }
Example #4
Source File: DocumentModeAssassin.java From delion with Apache License 2.0 | 4 votes |
/** @return Interfaces with the Android ActivityManager. */ protected ActivityDelegate createActivityDelegate() { return new ActivityDelegateImpl(DocumentActivity.class, IncognitoDocumentActivity.class); }
Example #5
Source File: DocumentModeAssassin.java From AndroidChromium with Apache License 2.0 | 4 votes |
/** @return Interfaces with the Android ActivityManager. */ protected ActivityDelegate createActivityDelegate() { return new ActivityDelegateImpl(DocumentActivity.class, IncognitoDocumentActivity.class); }
Example #6
Source File: DocumentModeAssassin.java From 365browser with Apache License 2.0 | 4 votes |
/** @return Interfaces with the Android ActivityManager. */ protected ActivityDelegate createActivityDelegate() { return new ActivityDelegateImpl(DocumentActivity.class, IncognitoDocumentActivity.class); }