Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / XWalkNotificationService.java
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.xwalk.core;
6
7 import android.content.Intent;
8 import android.graphics.Bitmap;
9
10 interface XWalkNotificationService {
11     public void setBridge(XWalkContentsClientBridge bridge);
12     public void showNotification(
13             String title, String message, int notificationId, int processId, int routeId);
14     public void updateNotificationIcon(int notificationId, Bitmap icon);
15     public void cancelNotification(int notificationId, int processId, int routeId);
16     public void shutdown();
17     public boolean maybeHandleIntent(Intent intent);
18 }