1 // Copyright 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.chromium.android_webview; 6 7 /** 8 * This interface is used when the AwContentsClient offers a JavaScript 9 * modal dialog (alert, beforeunload or confirm) to enable the client to 10 * handle the dialog in their own way. AwContentsClient 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 JsResultReceiver { 16 public void confirm(); 17 public void cancel(); 18 } 19