/*
 * 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 {

	public void updateUrl(String title, boolean shortUrl);

	public void updateProgress(int n);

	public void updateHistory(String title, String url);

	public void openFileChooser(ValueCallback<Uri> uploadMsg);

	public void update();

	public void onLongPress();

	public void onShowCustomView(View view, int requestedOrientation, CustomViewCallback callback);

	public void onHideCustomView();

	public Bitmap getDefaultVideoPoster();

	public View getVideoLoadingProgressView();

	public void onCreateWindow(boolean isUserGesture, Message resultMsg);

	public Activity getActivity();

	public void hideActionBar();

	public void showActionBar();

	public void toggleActionBar();

	public void longClickPage(String url);

	public void openBookmarkPage(WebView view);

	public void showFileChooser(ValueCallback<Uri[]> filePathCallback);

	public void closeEmptyTab();

	public boolean isIncognito();

	public int getMenu();
}
