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 dialog (alert, beforeunload or confirm) to enable the client to
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * handle the dialog in their own way. AwContentsClient will offer an object
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * that implements this interface to the client and when the client has handled
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * the dialog, it must either callback with confirm() or cancel() to allow
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * processing to continue.
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) */
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)public interface JsResultReceiver {
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    public void confirm();
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    public void cancel();
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
19