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

Unified Diff: webapk/libs/client/src/org/chromium/webapk/lib/client/NotificationBuilderDelegate.java

Issue 1965583002: Move //webapk to //chrome/android/webapk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: webapk/libs/client/src/org/chromium/webapk/lib/client/NotificationBuilderDelegate.java
diff --git a/webapk/libs/client/src/org/chromium/webapk/lib/client/NotificationBuilderDelegate.java b/webapk/libs/client/src/org/chromium/webapk/lib/client/NotificationBuilderDelegate.java
deleted file mode 100644
index cde9e3148550808765700a4f4a7b7d0b5bc11712..0000000000000000000000000000000000000000
--- a/webapk/libs/client/src/org/chromium/webapk/lib/client/NotificationBuilderDelegate.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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.webapk.lib.client;
-
-import android.app.Notification;
-import android.app.PendingIntent;
-import android.graphics.Bitmap;
-
-/**
- * An interface for setting PendingIntents when building a notification.
- */
-public interface NotificationBuilderDelegate {
- /**
- * Sets the PendingIntent to send when the notification is clicked.
- */
- NotificationBuilderDelegate setContentIntent(PendingIntent intent);
-
- /**
- * Sets the PendingIntent to send when the notification is cleared by the user directly from
- * the notification panel.
- */
- NotificationBuilderDelegate setDeleteIntent(PendingIntent intent);
-
- /**
- * Adds an action to the notification. Actions are typically displayed as a button adjacent to
- * the notification content.
- */
- NotificationBuilderDelegate addAction(Bitmap iconBitmap, CharSequence title,
- PendingIntent intent);
-
- /**
- * Sets small icon id for displaying a notification.
- */
- NotificationBuilderDelegate setSmallIcon(int icon);
-
- /**
- * Combines all of the options that have been set and returns a new Notification object.
- */
- Notification build();
-
-}

Powered by Google App Engine
This is Rietveld 408576698