diff options
author | Tarun Nainani <tnainani@codeaurora.org> | 2015-05-18 18:58:12 -0700 |
---|---|---|
committer | jrizzoli <joey@cyanogenmoditalia.it> | 2015-08-28 13:15:44 +0200 |
commit | d598b9e4e4a4fa24cb4506b3df58856f0f9be240 (patch) | |
tree | 3d695fade77c44b724b0b9cb9fb01c4aace18abe /src/com/android/browser/Tab.java | |
parent | c0e1d433f8e15511dccb14e44e6517040fd9e86a (diff) | |
download | android_packages_apps_Gello-d598b9e4e4a4fa24cb4506b3df58856f0f9be240.tar.gz android_packages_apps_Gello-d598b9e4e4a4fa24cb4506b3df58856f0f9be240.tar.bz2 android_packages_apps_Gello-d598b9e4e4a4fa24cb4506b3df58856f0f9be240.zip |
Implement 24 hour Geolocation infobar
Remove GeolocationPermissionPromt code as now its handled by infobar.
Remove LocationButton from navigation bar.
Change-Id: Id1c78da371556d1366afe22012f3b2efff803a39
Diffstat (limited to 'src/com/android/browser/Tab.java')
-rw-r--r-- | src/com/android/browser/Tab.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 4ca8937e..78e929a2 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -50,7 +50,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewStub; import android.webkit.ConsoleMessage; -import android.webkit.GeolocationPermissions; import android.webkit.URLUtil; import android.webkit.WebResourceResponse; import android.webkit.WebStorage; @@ -134,8 +133,6 @@ class Tab implements PictureListener { // The tab ID private long mId = -1; - // The Geolocation permissions prompt - private GeolocationPermissionsPrompt mGeolocationPermissionsPrompt; // Main WebView wrapper private View mContainer; // Main WebView @@ -333,12 +330,6 @@ class Tab implements PictureListener { mTouchIconLoader = null; } - // Loading a new page voids any ongoing Geolocation permission - // requests. - if (mGeolocationPermissionsPrompt != null) { - mGeolocationPermissionsPrompt.dismiss(); - } - // finally update the UI in the activity if it is in the foreground mWebViewController.onPageStarted(Tab.this, view, favicon); @@ -956,32 +947,6 @@ class Tab implements PictureListener { quotaUpdater); } - /** - * Instructs the browser to show a prompt to ask the user to set the - * Geolocation permission state for the specified origin. - * @param origin The origin for which Geolocation permissions are - * requested. - * @param callback The callback to call once the user has set the - * Geolocation permission state. - */ - @Override - public void onGeolocationPermissionsShowPrompt(String origin, - GeolocationPermissions.Callback callback) { - if (mInForeground) { - getGeolocationPermissionsPrompt().show(origin, callback); - } - } - - /** - * Instructs the browser to hide the Geolocation permissions prompt. - */ - @Override - public void onGeolocationPermissionsHidePrompt() { - if (mInForeground && mGeolocationPermissionsPrompt != null) { - mGeolocationPermissionsPrompt.hide(); - } - } - /* Adds a JavaScript error message to the system log and if the JS * console is enabled in the about:debug options, to that console * also. @@ -1329,12 +1294,6 @@ class Tab implements PictureListener { return; } - // If the WebView is changing, the page will be reloaded, so any ongoing - // Geolocation permission requests are void. - if (mGeolocationPermissionsPrompt != null) { - mGeolocationPermissionsPrompt.hide(); - } - mWebViewController.onSetWebView(this, w); if (mMainView != null) { @@ -1671,19 +1630,6 @@ class Tab implements PictureListener { mSubViewContainer = subViewContainer; } - /** - * @return The geolocation permissions prompt for this tab. - */ - GeolocationPermissionsPrompt getGeolocationPermissionsPrompt() { - if (mGeolocationPermissionsPrompt == null) { - ViewStub stub = (ViewStub) mContainer - .findViewById(R.id.geolocation_permissions_prompt); - mGeolocationPermissionsPrompt = (GeolocationPermissionsPrompt) stub - .inflate(); - mGeolocationPermissionsPrompt.init(mCurrentState.mIncognito); - } - return mGeolocationPermissionsPrompt; - } /** * @return The application id string |