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.
5 package org.xwalk.core;
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.
15 public interface JsResult {
16 public void confirm();