Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4434)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java

Issue 2267463002: Implement instant apps infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix an import Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java b/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java
new file mode 100644
index 0000000000000000000000000000000000000000..d062da2fc2efb3c9b7a03fe55dbdaab259fcb646
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java
@@ -0,0 +1,37 @@
+// Copyright 2016 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.instantapps;
+
+import android.graphics.Bitmap;
+
+/**
+ * Encapsulates information needed to display an {@link InstantAppsInfoBar}.
+ */
+public class InstantAppsBannerData {
+ private String mAppName;
+ private Bitmap mAppIcon;
+ private String mUrl;
+
+ public InstantAppsBannerData(String appName, Bitmap icon, String url) {
+ mAppName = appName;
+ mAppIcon = icon;
+ mUrl = url;
+ }
+
+ /** @return The name of the Instant App. */
+ public String getAppName() {
+ return mAppName;
+ }
+
+ /** @return The badged Instant App icon. */
+ public Bitmap getIcon() {
+ return mAppIcon;
+ }
+
+ /** @return The host name for the URL. */
+ public String getUrl() {
+ return mUrl;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698