Chromium Code Reviews| 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..e87681896fcd95094d0e7b1d29bfff79e895a57c |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java |
| @@ -0,0 +1,34 @@ |
| +// 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; |
| +import org.chromium.base.annotations.JNINamespace; |
| + |
| +/** |
| + * Helper class for passing notification action information over the JNI. |
|
Peter Beverloo
2016/10/20 15:36:20
Heh, funny -- this reads wrong to me, but actually
awdf
2016/10/20 16:05:39
yeah? what would you say?
Peter Beverloo
2016/10/20 16:13:38
I think this is good :). [[Insert The Social Netw
|
| + */ |
| +@JNINamespace("chrome") |
|
Peter Beverloo
2016/10/20 15:36:20
nit: drop
awdf
2016/10/20 16:05:39
Done.
awdf
2016/10/20 16:05:39
Done.
|
| +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); |
| + } |
| +} |