Java 类org.apache.cordova.CordovaWebViewClient 实例源码

项目:12306-android-Decompile    文件:MobileTicket.java   
public void init()
{
  SSLWLWebView localSSLWLWebView = new SSLWLWebView(this);
  if (Build.VERSION.SDK_INT < 11);
  for (Object localObject = new CordovaWebViewClient(this, localSSLWLWebView); ; localObject = new IceCreamCordovaWebViewClient(this, localSSLWLWebView))
  {
    super.init(localSSLWLWebView, (CordovaWebViewClient)localObject, new CordovaChromeClient(this, localSSLWLWebView));
    return;
  }
}
项目:12306-android-Decompile    文件:WLDroidGap.java   
public void init()
{
  WLWebView localWLWebView = new WLWebView(this);
  if (Build.VERSION.SDK_INT < 11);
  for (Object localObject = new CordovaWebViewClient(this, localWLWebView); ; localObject = new IceCreamCordovaWebViewClient(this, localWLWebView))
  {
    super.init(localWLWebView, (CordovaWebViewClient)localObject, new CordovaChromeClient(this, localWLWebView));
    return;
  }
}
项目:12306-android-Decompile    文件:WLDroidGap.java   
public void init()
{
  WLWebView localWLWebView = new WLWebView(this);
  if (Build.VERSION.SDK_INT < 11);
  for (Object localObject = new CordovaWebViewClient(this, localWLWebView); ; localObject = new IceCreamCordovaWebViewClient(this, localWLWebView))
  {
    super.init(localWLWebView, (CordovaWebViewClient)localObject, new CordovaChromeClient(this, localWLWebView));
    return;
  }
}
项目:crosswalk-cordova-android    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    //CB-7238: This has to be added now, because it got removed from somewhere else
    Config.init(this);

    cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
    cordovaWebView.init(this, new CordovaWebViewClient(this, cordovaWebView), new CordovaChromeClient(this, cordovaWebView),
            Config.getPluginEntries(), Config.getWhitelist(), Config.getExternalWhitelist(), Config.getPreferences());

    cordovaWebView.loadUrl("file:///android_asset/www/index.html");

}
项目:cordova-amazon-fireos    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

//        AWV Factory should be initialized before setting the layout  
        if (!sFactoryInit) {
           factory = AmazonWebKitFactories.getDefaultFactory();
           if (factory.isRenderProcess(this)) {
               return; // Do nothing if this is on render process
           }
          factory.initialize(this);

           sFactoryInit = true;
       } else {
           factory = AmazonWebKitFactories.getDefaultFactory();
       }

        setContentView(R.layout.main);

        //CB-7238: This has to be added now, because it got removed from somewhere else
        Config.init(this);

        cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
        factory.initializeWebView(cordovaWebView, 0xFFFFFF, false, null);
        cordovaWebView.init(this, new CordovaWebViewClient(this, cordovaWebView), new CordovaChromeClient(this, cordovaWebView),
                Config.getPluginEntries(), Config.getWhitelist(), Config.getExternalWhitelist(), Config.getPreferences());

        cordovaWebView.loadUrl("file:///android_asset/www/index.html");

    }
项目:xface-android    文件:UserWebViewTest.java   
public void testCustom()
{
  assertTrue(CordovaWebView.class.isInstance(testView));
  assertTrue(CordovaWebViewClient.class.isInstance(testActivity.testViewClient));
  assertTrue(CordovaChromeClient.class.isInstance(testActivity.testChromeClient));
}
项目:xface-android    文件:XFaceMainActivity.java   
@Override
protected CordovaWebViewClient makeWebViewClient(CordovaWebView webView) {
    CordovaWebViewClient webViewClient;
    if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB) {
        webViewClient = new XWebViewClient(this, webView);
    } else {
        webViewClient = new XIceCreamWebViewClient(this, webView);
    }
    return webViewClient;
}
项目:selendroid    文件:SelendroidWebDriver.java   
public WrappingSelendroidCordovaWebClient(CordovaWebView webView) throws NoSuchFieldException, IllegalAccessException {
  super(null, webView);
  CWVC = (CordovaWebViewClient)reflectionGet(webView, "viewClient");
  selendroidCWVC = new SelendroidCordovaWebClient(null, webView);
}
项目:cordova-android-chromeview    文件:UserWebViewTest.java   
public void customTest()
{
  assertTrue(CordovaWebView.class.isInstance(testView));
  assertTrue(CordovaWebViewClient.class.isInstance(testActivity.testViewClient));
  assertTrue(CordovaChromeClient.class.isInstance(testActivity.testChromeClient));
}
项目:12306-android-Decompile    文件:MobileTicket.java   
public void init()
{
  SSLWLWebView localSSLWLWebView = new SSLWLWebView(this);
  if (Build.VERSION.SDK_INT < 11);
  for (Object localObject = new CordovaWebViewClient(this, localSSLWLWebView); ; localObject = new IceCreamCordovaWebViewClient(this, localSSLWLWebView))
  {
    super.init(localSSLWLWebView, (CordovaWebViewClient)localObject, new CordovaChromeClient(this, localSSLWLWebView));
    return;
  }
}
项目:selendroid    文件:SelendroidWebDriver.java   
private CordovaWebViewClient encapulateCordovaWebViewClientForView(CordovaWebView view) throws NoSuchFieldException, IllegalAccessException {
  if (reflectionGet(view, "viewClient") != null) {
    return new WrappingSelendroidCordovaWebClient(view);
  }
  return new SelendroidCordovaWebClient((CordovaInterface)reflectionGet(view, "cordova"), view);
}