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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java

Issue 156343002: Let AppBannerManager really create and manage banners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Piling on more changes from Android UX requests Created 6 years, 10 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/banners/DetailsDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..9e3654a643f8327e7f5de4ad8221e64c3e2bb315
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java
@@ -0,0 +1,24 @@
+// 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;
+
+/**
+ * Fetches data about the given app.
+ */
+public interface DetailsDelegate {
Yaron 2014/02/19 22:41:36 Nit: rename AppDetailsDelegate
gone 2014/02/20 22:07:24 Done.
+ /**
+ * Retrieves information about the given package.
+ * @param packageName Name of the package to retrieve details for.
+ * @param iconSize Size of the icon to retrieve.
+ * @param data Data about the app will be placed in this class.
+ * @return True if the data was retrieved successfully.
+ */
+ public boolean getAppDetails(String packageName, int iconSize, AppData data);
+
+ /**
+ * Destroy the delegate, cleaning up any open hooks.
+ */
+ public void destroy();
+}

Powered by Google App Engine
This is Rietveld 408576698