Sha256: 6aca86009f420b65c8eedb2e1d1d890d64d12d6791116428dbe311e3c91c557e

Contents?: true

Size: 1.06 KB

Versions: 32

Compression:

Stored size: 1.06 KB

Contents

package com.rhomobile.rhodes.webview;

import com.rhomobile.rhodes.RhodesActivity;

import android.view.Window;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webkit.WebView;

public class ChromeClientOld extends WebChromeClient {
	
	private RhodesActivity mRhodesActivity;
	
	public ChromeClientOld(RhodesActivity rhodesActivity) {
		mRhodesActivity = rhodesActivity;
	}
	
	@Override
	public void onProgressChanged(WebView view, int newProgress) {
		if (RhodesActivity.ENABLE_LOADING_INDICATION) {
			newProgress *= 100;
			if (newProgress < 0)
				newProgress = 0;
			if (newProgress > RhodesActivity.MAX_PROGRESS)
				newProgress = RhodesActivity.MAX_PROGRESS;
			mRhodesActivity.getWindow().setFeatureInt(Window.FEATURE_PROGRESS, newProgress);
		}
		super.onProgressChanged(view, newProgress);
	}
	
	@Override
	public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
		return false;
	}
	
	@Override
	public boolean onJsConfirm(WebView view, String url, String message, JsResult result) {
		return false;
	}
	
}

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.2.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.8 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.7 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.6 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.5 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.4 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.1.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.7 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.6 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.5 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.4 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-3.0.0.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-2.4.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java
rhodes-2.4.1.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java