| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| package org.chromium.chrome.browser.touchless; |
| |
| import android.graphics.Bitmap; |
| import android.view.View; |
| |
| import org.chromium.base.Callback; |
| import org.chromium.chrome.browser.native_page.ContextMenuManager; |
| import org.chromium.ui.modelutil.PropertyKey; |
| import org.chromium.ui.modelutil.PropertyModel; |
| |
| class OpenLastTabProperties { |
| public static final PropertyModel |
| .WritableObjectPropertyKey<View.OnClickListener> OPEN_LAST_TAB_ON_CLICK_LISTENER = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| public static final PropertyModel.WritableObjectPropertyKey<Bitmap> OPEN_LAST_TAB_FAVICON = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| public static final PropertyModel.WritableObjectPropertyKey<String> OPEN_LAST_TAB_TITLE = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| public static final PropertyModel.WritableObjectPropertyKey<String> OPEN_LAST_TAB_TIMESTAMP = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| public static final PropertyModel.WritableBooleanPropertyKey OPEN_LAST_TAB_LOAD_SUCCESS = |
| new PropertyModel.WritableBooleanPropertyKey(); |
| |
| public static final PropertyModel.WritableBooleanPropertyKey OPEN_LAST_TAB_FIRST_LAUNCH = |
| new PropertyModel.WritableBooleanPropertyKey(); |
| |
| public static final PropertyModel.WritableObjectPropertyKey<Runnable> ON_FOCUS_CALLBACK = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| public static final PropertyModel.WritableBooleanPropertyKey SHOULD_FOCUS_VIEW = |
| new PropertyModel.WritableBooleanPropertyKey(); |
| |
| public static final PropertyModel |
| .ReadableObjectPropertyKey<Callback<View>> ASYNC_FOCUS_DELEGATE = |
| new PropertyModel.ReadableObjectPropertyKey<>(); |
| |
| public static final PropertyModel |
| .WritableObjectPropertyKey<ContextMenuManager.Delegate> CONTEXT_MENU_DELEGATE = |
| new PropertyModel.WritableObjectPropertyKey<>(); |
| |
| // Property keys for the open last tab button. |
| public static final PropertyKey[] ALL_KEYS = {OPEN_LAST_TAB_ON_CLICK_LISTENER, |
| OPEN_LAST_TAB_FAVICON, OPEN_LAST_TAB_TITLE, OPEN_LAST_TAB_TIMESTAMP, |
| OPEN_LAST_TAB_LOAD_SUCCESS, OPEN_LAST_TAB_FIRST_LAUNCH, ON_FOCUS_CALLBACK, |
| SHOULD_FOCUS_VIEW, ASYNC_FOCUS_DELEGATE, CONTEXT_MENU_DELEGATE}; |
| } |