| Index: chrome/android/java/src/org/chromium/chrome/browser/banners/AppData.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/banners/AppData.java b/chrome/android/java/src/org/chromium/chrome/browser/banners/AppData.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..efafecfb5b873e02635761e9e1ae711c35680dd0
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/banners/AppData.java
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2014 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.banners;
|
| +
|
| +import android.app.PendingIntent;
|
| +import android.graphics.drawable.Drawable;
|
| +
|
| +/**
|
| + * Stores information about a particular app.
|
| + */
|
| +public class AppData {
|
| + // Installation states.
|
| + static final int INSTALL_STATE_NOT_INSTALLED = 0;
|
| + static final int INSTALL_STATE_INSTALLING = 1;
|
| + static final int INSTALL_STATE_INSTALLED = 2;
|
| +
|
| + // URL for the website displaying the banner.
|
| + public String siteUrl;
|
| +
|
| + // Play store package name for the app.
|
| + public String packageName;
|
| +
|
| + // Title of the app.
|
| + public String title;
|
| +
|
| + // URL for the app icon.
|
| + public String imageUrl;
|
| +
|
| + // Drawable containing the app icon.
|
| + public Drawable icon;
|
| +
|
| + // Rating.
|
| + public float rating;
|
| +
|
| + // Text to display on the install button.
|
| + public String installButtonText;
|
| +
|
| + // Intent that triggers the Play store page.
|
| + public PendingIntent detailsIntent;
|
| +
|
| + // Intent that triggers installation.
|
| + public PendingIntent installIntent;
|
| +
|
| + // State of the install.
|
| + public int installState = INSTALL_STATE_NOT_INSTALLED;
|
| +}
|
|
|