1a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Copyright 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)package org.chromium.android_webview; 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/** 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * This interface is used when the AwContentsClient offers a JavaScript 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * modal prompt dialog to enable the client to handle the dialog in their own way. 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * AwContentsClient will offer an object that implements this interface to the 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * client and when the client has handled the dialog, it must either callback with 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * confirm() or cancel() to allow processing to continue. 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) */ 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)public interface JsPromptResultReceiver { 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) public void confirm(String result); 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) public void cancel(); 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 18