2014-04-28 15:41:40 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2014 A.C.R. Development
|
|
|
|
*/
|
|
|
|
package acr.browser.lightning;
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.os.Message;
|
|
|
|
import android.view.View;
|
|
|
|
import android.webkit.ValueCallback;
|
|
|
|
import android.webkit.WebChromeClient.CustomViewCallback;
|
|
|
|
import android.webkit.WebView;
|
|
|
|
|
|
|
|
public interface BrowserController {
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2015-01-26 13:09:27 -05:00
|
|
|
public void updateUrl(String title, boolean shortUrl);
|
2014-04-28 15:41:40 -04:00
|
|
|
|
|
|
|
public void updateProgress(int n);
|
|
|
|
|
|
|
|
public void updateHistory(String title, String url);
|
|
|
|
|
|
|
|
public void openFileChooser(ValueCallback<Uri> uploadMsg);
|
|
|
|
|
|
|
|
public void update();
|
2015-02-24 13:52:17 -05:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void onLongPress();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void onShowCustomView(View view, int requestedOrientation, CustomViewCallback callback);
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void onHideCustomView();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public Bitmap getDefaultVideoPoster();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public View getVideoLoadingProgressView();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void onCreateWindow(boolean isUserGesture, Message resultMsg);
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public Activity getActivity();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void hideActionBar();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void showActionBar();
|
2015-01-27 11:38:13 -05:00
|
|
|
|
|
|
|
public void toggleActionBar();
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void longClickPage(String url);
|
2014-07-19 16:49:33 +02:00
|
|
|
|
2014-04-28 15:41:40 -04:00
|
|
|
public void openBookmarkPage(WebView view);
|
2014-07-19 16:49:33 +02:00
|
|
|
|
|
|
|
|
2014-07-18 22:07:25 -04:00
|
|
|
public void closeEmptyTab();
|
2014-08-31 21:59:54 -04:00
|
|
|
|
|
|
|
public boolean isIncognito();
|
2015-01-26 13:09:27 -05:00
|
|
|
|
|
|
|
public int getMenu();
|
2014-04-28 15:41:40 -04:00
|
|
|
}
|