| Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8394f15e6b2302d6e5bacf343ea876b02deb6c18
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java
|
| @@ -0,0 +1,32 @@
|
| +// 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.notifications;
|
| +
|
| +import android.graphics.Bitmap;
|
| +
|
| +import org.chromium.base.annotations.CalledByNative;
|
| +
|
| +/**
|
| + * Helper class for passing notification action information over the JNI.
|
| + */
|
| +class ActionInfo {
|
| + public final String title;
|
| + public final Bitmap icon;
|
| + public final int type;
|
| + public final String placeholder;
|
| +
|
| + private ActionInfo(String title, Bitmap icon, int type, String placeholder) {
|
| + this.title = title;
|
| + this.icon = icon;
|
| + this.type = type;
|
| + this.placeholder = placeholder;
|
| + }
|
| +
|
| + @CalledByNative
|
| + private static ActionInfo createActionInfo(
|
| + String title, Bitmap icon, int type, String placeholder) {
|
| + return new ActionInfo(title, icon, type, placeholder);
|
| + }
|
| +}
|
|
|