Upstream version 5.34.97.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / JsPromptResult.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 prompt dialog  to enable the client to handle the dialog in their own way.
10  * XWalkContentsClient will offer an object that implements this interface to the
11  * client and when the client has handled the dialog, it must either callback with
12  * confirm() or cancel() to allow processing to continue.
13  */
14 public interface JsPromptResult {
15     public void confirm(String result);
16     public void cancel();
17 }