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 5package org.chromium.android_webview; 6 7/** 8 * This interface is used when the AwContentsClient offers a JavaScript 9 * modal prompt dialog to enable the client to handle the dialog in their own way. 10 * AwContentsClient 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 */ 14public interface JsPromptResultReceiver { 15 public void confirm(String result); 16 public void cancel(); 17} 18