Commit e56dfae8 authored by Nihar Thakkar's avatar Nihar Thakkar

Add authors and update copyrights

parent 4c6aab87
...@@ -89,6 +89,10 @@ import java.io.FileOutputStream; ...@@ -89,6 +89,10 @@ import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
/**
* Authors: Nihar Thakkar and others
*/
public class MainActivity extends WebViewExtActivity implements public class MainActivity extends WebViewExtActivity implements
SearchBarController.OnCancelListener SearchBarController.OnCancelListener
{ {
......
...@@ -31,6 +31,10 @@ import android.widget.Toast; ...@@ -31,6 +31,10 @@ import android.widget.Toast;
import io.eelo.browser.utils.PrefsUtils; import io.eelo.browser.utils.PrefsUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class SettingsActivity extends AppCompatActivity { public class SettingsActivity extends AppCompatActivity {
@Override @Override
......
...@@ -40,6 +40,10 @@ import android.widget.LinearLayout; ...@@ -40,6 +40,10 @@ import android.widget.LinearLayout;
import io.eelo.browser.R; import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils; import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class FavoriteActivity extends AppCompatActivity { public class FavoriteActivity extends AppCompatActivity {
private RecyclerView mList; private RecyclerView mList;
private View mEmptyView; private View mEmptyView;
......
...@@ -23,6 +23,10 @@ import android.view.ViewGroup; ...@@ -23,6 +23,10 @@ import android.view.ViewGroup;
import io.eelo.browser.R; import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class FavoriteAdapter extends RecyclerView.Adapter<FavoriteHolder> { class FavoriteAdapter extends RecyclerView.Adapter<FavoriteHolder> {
private final Context mContext; private final Context mContext;
private Cursor mCursor; private Cursor mCursor;
......
...@@ -28,6 +28,10 @@ import io.eelo.browser.MainActivity; ...@@ -28,6 +28,10 @@ import io.eelo.browser.MainActivity;
import io.eelo.browser.R; import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils; import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
class FavoriteHolder extends RecyclerView.ViewHolder { class FavoriteHolder extends RecyclerView.ViewHolder {
private final CardView mCard; private final CardView mCard;
private final TextView mTitle; private final TextView mTitle;
......
...@@ -30,6 +30,10 @@ import android.provider.BaseColumns; ...@@ -30,6 +30,10 @@ import android.provider.BaseColumns;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
/**
* Authors: Nihar Thakkar and others
*/
public class FavoriteProvider extends ContentProvider { public class FavoriteProvider extends ContentProvider {
public interface Columns extends BaseColumns { public interface Columns extends BaseColumns {
String AUTHORITY = "io.eelo.browser.favorite"; String AUTHORITY = "io.eelo.browser.favorite";
......
...@@ -37,6 +37,10 @@ import android.view.View; ...@@ -37,6 +37,10 @@ import android.view.View;
import io.eelo.browser.R; import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils; import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class HistoryActivity extends AppCompatActivity { public class HistoryActivity extends AppCompatActivity {
private View mEmptyView; private View mEmptyView;
......
...@@ -28,6 +28,10 @@ import java.text.SimpleDateFormat; ...@@ -28,6 +28,10 @@ import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.Locale; import java.util.Locale;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryAdapter extends RecyclerView.Adapter<HistoryHolder> { class HistoryAdapter extends RecyclerView.Adapter<HistoryHolder> {
private final Context mContext; private final Context mContext;
private final DateFormat mHistoryDateFormat; private final DateFormat mHistoryDateFormat;
......
...@@ -25,6 +25,10 @@ import android.view.View; ...@@ -25,6 +25,10 @@ import android.view.View;
import io.eelo.browser.R; import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryAnimationDecorator extends RecyclerView.ItemDecoration { class HistoryAnimationDecorator extends RecyclerView.ItemDecoration {
private final Drawable mBackground; private final Drawable mBackground;
......
...@@ -29,6 +29,10 @@ import android.view.View; ...@@ -29,6 +29,10 @@ import android.view.View;
import io.eelo.browser.R; import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryCallBack extends ItemTouchHelper.SimpleCallback { class HistoryCallBack extends ItemTouchHelper.SimpleCallback {
private final ContentResolver mResolver; private final ContentResolver mResolver;
private final Drawable mBackground; private final Drawable mBackground;
......
...@@ -30,6 +30,10 @@ import io.eelo.browser.MainActivity; ...@@ -30,6 +30,10 @@ import io.eelo.browser.MainActivity;
import io.eelo.browser.R; import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils; import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryHolder extends RecyclerView.ViewHolder { class HistoryHolder extends RecyclerView.ViewHolder {
private final LinearLayout mRootLayout; private final LinearLayout mRootLayout;
......
...@@ -30,6 +30,10 @@ import android.provider.BaseColumns; ...@@ -30,6 +30,10 @@ import android.provider.BaseColumns;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
/**
* Authors: Nihar Thakkar and others
*/
public class HistoryProvider extends ContentProvider { public class HistoryProvider extends ContentProvider {
public interface Columns extends BaseColumns { public interface Columns extends BaseColumns {
String AUTHORITY = "io.eelo.browser.history"; String AUTHORITY = "io.eelo.browser.history";
......
...@@ -22,6 +22,8 @@ import org.json.JSONArray; ...@@ -22,6 +22,8 @@ import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
/** /**
* Authors: Nihar Thakkar and others
*
* The search suggestions provider for the DuckDuckGo search engine. * The search suggestions provider for the DuckDuckGo search engine.
*/ */
class DuckSuggestionProvider extends SuggestionProvider { class DuckSuggestionProvider extends SuggestionProvider {
......
/* /*
* Copyright (C) 2017 The LineageOS Project * Copyright (C) 2017 The LineageOS Project
* Copyright (C) 2018 e Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -22,6 +23,8 @@ import org.json.JSONArray; ...@@ -22,6 +23,8 @@ import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
/** /**
* Authors: Nihar Thakkar and others
*
* Search suggestions provider for the eelo spot search engine. * Search suggestions provider for the eelo spot search engine.
*/ */
class EeloSuggestionProvider extends SuggestionProvider class EeloSuggestionProvider extends SuggestionProvider
......
/* /*
* Copyright (C) 2017 The LineageOS Project * Copyright (C) 2017 The LineageOS Project
* Copyright (C) 2018 e Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -22,6 +23,8 @@ import org.json.JSONArray; ...@@ -22,6 +23,8 @@ import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
/** /**
* Authors: Nihar Thakkar and others
*
* Search suggestions provider for the Qwant search engine. * Search suggestions provider for the Qwant search engine.
*/ */
class QwantSuggestionProvider extends SuggestionProvider class QwantSuggestionProvider extends SuggestionProvider
......
...@@ -37,6 +37,8 @@ import java.util.Locale; ...@@ -37,6 +37,8 @@ import java.util.Locale;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
/** /**
* Authors: Nihar Thakkar and others
*
* The base search suggestions API. Provides common * The base search suggestions API. Provides common
* fetching and caching functionality for each potential * fetching and caching functionality for each potential
* suggestions provider. * suggestions provider.
......
...@@ -36,6 +36,10 @@ import java.util.ArrayList; ...@@ -36,6 +36,10 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
/**
* Authors: Romain HUNAULT, Nihar Thakkar and others
*/
public class SuggestionsAdapter extends BaseAdapter implements Filterable public class SuggestionsAdapter extends BaseAdapter implements Filterable
{ {
private final ArrayList<String> mItems = new ArrayList<>(); private final ArrayList<String> mItems = new ArrayList<>();
......
...@@ -24,6 +24,10 @@ import android.graphics.Shader; ...@@ -24,6 +24,10 @@ import android.graphics.Shader;
import android.support.v7.widget.AppCompatAutoCompleteTextView; import android.support.v7.widget.AppCompatAutoCompleteTextView;
import android.util.AttributeSet; import android.util.AttributeSet;
/**
* Authors: Nihar Thakkar and others
*/
public class AutoCompleteTextViewExt extends AppCompatAutoCompleteTextView { public class AutoCompleteTextViewExt extends AppCompatAutoCompleteTextView {
private OnFocusChangeListener mFocusChangeListener; private OnFocusChangeListener mFocusChangeListener;
private int mPositionX; private int mPositionX;
......
...@@ -25,6 +25,10 @@ import android.widget.TextView; ...@@ -25,6 +25,10 @@ import android.widget.TextView;
import io.eelo.browser.R; import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
public class KeyValueView extends LinearLayout { public class KeyValueView extends LinearLayout {
private TextView mKeyView; private TextView mKeyView;
private TextView mValueView; private TextView mValueView;
......
...@@ -28,6 +28,10 @@ import android.widget.TextView; ...@@ -28,6 +28,10 @@ import android.widget.TextView;
import io.eelo.browser.utils.UiUtils; import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class SearchBarController implements public class SearchBarController implements
TextWatcher, TextView.OnEditorActionListener, WebView.FindListener, View.OnClickListener { TextWatcher, TextView.OnEditorActionListener, WebView.FindListener, View.OnClickListener {
public interface OnCancelListener { public interface OnCancelListener {
......
...@@ -31,6 +31,10 @@ import io.eelo.browser.R; ...@@ -31,6 +31,10 @@ import io.eelo.browser.R;
import java.text.DateFormat; import java.text.DateFormat;
import java.util.Date; import java.util.Date;
/**
* Authors: Nihar Thakkar and others
*/
public class UrlBarController implements View.OnFocusChangeListener { public class UrlBarController implements View.OnFocusChangeListener {
private EditText mEditor; private EditText mEditor;
private ImageView mSecureIcon; private ImageView mSecureIcon;
......
...@@ -23,6 +23,10 @@ import java.io.IOException; ...@@ -23,6 +23,10 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
/**
* Authors: Nihar Thakkar and others
*/
public class FileUtils { public class FileUtils {
@NonNull @NonNull
public static String readStringFromStream(@NonNull InputStream inputStream, public static String readStringFromStream(@NonNull InputStream inputStream,
......
...@@ -21,6 +21,10 @@ import android.preference.PreferenceManager; ...@@ -21,6 +21,10 @@ import android.preference.PreferenceManager;
import io.eelo.browser.R; import io.eelo.browser.R;
/**
* Authors: Romain HUNAULT, Nihar Thakkar and others
*/
public final class PrefsUtils public final class PrefsUtils
{ {
private static final String KEY_SEARCH_ENGINE = "key_search_engine"; private static final String KEY_SEARCH_ENGINE = "key_search_engine";
......
...@@ -32,6 +32,10 @@ import android.view.View; ...@@ -32,6 +32,10 @@ import android.view.View;
import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodManager;
import android.widget.ImageButton; import android.widget.ImageButton;
/**
* Authors: Nihar Thakkar and others
*/
public final class UiUtils { public final class UiUtils {
private UiUtils() { private UiUtils() {
......
...@@ -22,6 +22,10 @@ import android.webkit.URLUtil; ...@@ -22,6 +22,10 @@ import android.webkit.URLUtil;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/**
* Authors: Nihar Thakkar and others
*/
public final class UrlUtils { public final class UrlUtils {
public static final Pattern ACCEPTED_URI_SCHEMA = Pattern.compile( public static final Pattern ACCEPTED_URI_SCHEMA = Pattern.compile(
"(?i)" + // switch on case insensitive matching "(?i)" + // switch on case insensitive matching
......
...@@ -31,6 +31,10 @@ import io.eelo.browser.R; ...@@ -31,6 +31,10 @@ import io.eelo.browser.R;
import io.eelo.browser.history.HistoryProvider; import io.eelo.browser.history.HistoryProvider;
import io.eelo.browser.ui.UrlBarController; import io.eelo.browser.ui.UrlBarController;
/**
* Authors: Nihar Thakkar and others
*/
class ChromeClient extends WebChromeClientCompat { class ChromeClient extends WebChromeClientCompat {
private final WebViewExtActivity mActivity; private final WebViewExtActivity mActivity;
private final boolean mIncognito; private final boolean mIncognito;
......
...@@ -50,6 +50,10 @@ import java.util.Collections; ...@@ -50,6 +50,10 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
/**
* Authors: Nihar Thakkar and others
*/
class WebClient extends WebViewClient { class WebClient extends WebViewClient {
private UrlBarController mUrlBarController; private UrlBarController mUrlBarController;
......
...@@ -35,6 +35,10 @@ import java.util.Map; ...@@ -35,6 +35,10 @@ import java.util.Map;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/**
* Authors: Nihar Thakkar and others
*/
public class WebViewExt extends WebView { public class WebViewExt extends WebView {
private static final String TAG = "WebViewExt"; private static final String TAG = "WebViewExt";
......
...@@ -20,6 +20,10 @@ import android.support.v7.app.AppCompatActivity; ...@@ -20,6 +20,10 @@ import android.support.v7.app.AppCompatActivity;
import android.view.View; import android.view.View;
import android.webkit.WebChromeClient; import android.webkit.WebChromeClient;
/**
* Authors: Nihar Thakkar and others
*/
public abstract class WebViewExtActivity extends AppCompatActivity { public abstract class WebViewExtActivity extends AppCompatActivity {
public abstract void downloadFileAsk(String url, String contentDisposition, String mimeType); public abstract void downloadFileAsk(String url, String contentDisposition, String mimeType);
......
...@@ -18,6 +18,10 @@ package io.eelo.browser; ...@@ -18,6 +18,10 @@ package io.eelo.browser;
import android.content.IntentFilter; import android.content.IntentFilter;
/**
* Authors: Nihar Thakkar and others
*/
public class IntentFilterCompat { public class IntentFilterCompat {
public static boolean filterIsBrowser(IntentFilter filter) { public static boolean filterIsBrowser(IntentFilter filter) {
return filter.countDataAuthorities() == 0; return filter.countDataAuthorities() == 0;
......
...@@ -19,6 +19,10 @@ package io.eelo.browser.webview; ...@@ -19,6 +19,10 @@ package io.eelo.browser.webview;
import android.webkit.WebChromeClient; import android.webkit.WebChromeClient;
import android.webkit.WebView; import android.webkit.WebView;
/**
* Authors: Nihar Thakkar and others
*/
class WebChromeClientCompat extends WebChromeClient { class WebChromeClientCompat extends WebChromeClient {
@SuppressWarnings("UnusedParameters") @SuppressWarnings("UnusedParameters")
public void onThemeColorChanged(WebView view, int color) {} public void onThemeColorChanged(WebView view, int color) {}
......
...@@ -18,6 +18,10 @@ package io.eelo.browser.webview; ...@@ -18,6 +18,10 @@ package io.eelo.browser.webview;
import android.webkit.WebView; import android.webkit.WebView;
/**
* Authors: Nihar Thakkar and others
*/
public final class WebViewCompat { public final class WebViewCompat {
private WebViewCompat() { private WebViewCompat() {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment