Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / java / src / org / xwalk / core / JsResult.java
1 // Copyright (c) 2012 The Chromium Authors. 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 /**
8  * This interface is used when the XWalkContentsClient offers a JavaScript
9  * modal dialog (alert, beforeunload or confirm) to enable the client to
10  * handle the dialog in their own way. XWalkContentsClient will offer an object
11  * that implements this interface to the client and when the client has handled
12  * the dialog, it must either callback with confirm() or cancel() to allow
13  * processing to continue.
14  */
15 public interface JsResult {
16     public void confirm();
17     public void cancel();
18 }