Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / android / xwalk_contents_client_bridge.h
index 0ab5083..a1e6ed9 100644 (file)
@@ -64,7 +64,7 @@ class XWalkContentsClientBridge : public XWalkContentsClientBridgeBase {
   virtual void ShowNotification(
       const content::ShowDesktopNotificationHostMsgParams& params,
       content::RenderFrameHost* render_frame_host,
-      content::DesktopNotificationDelegate* delegate,
+      scoped_ptr<content::DesktopNotificationDelegate> delegate,
       base::Closure* cancel_callback)
       OVERRIDE;
   virtual void UpdateNotificationIcon(
@@ -91,11 +91,10 @@ class XWalkContentsClientBridge : public XWalkContentsClientBridgeBase {
   void ConfirmJsResult(JNIEnv*, jobject, int id, jstring prompt);
   void CancelJsResult(JNIEnv*, jobject, int id);
   void ExitFullscreen(JNIEnv*, jobject, jlong web_contents);
-  void NotificationDisplayed(JNIEnv*, jobject, jlong delegate);
-  void NotificationError(JNIEnv*, jobject, jlong delegate);
-  void NotificationClicked(JNIEnv*, jobject, jint id, jlong delegate);
-  void NotificationClosed(JNIEnv*, jobject, jint id, bool by_user,
-    jlong delegate);
+  void NotificationDisplayed(JNIEnv*, jobject, jint id);
+  void NotificationError(JNIEnv*, jobject, jint id);
+  void NotificationClicked(JNIEnv*, jobject, jint id);
+  void NotificationClosed(JNIEnv*, jobject, jint id, bool by_user);
   void OnFilesSelected(
       JNIEnv*, jobject, int process_id, int render_id,
       int mode, jstring filepath, jstring display_name);