ValueCallback.java revision 0691ad50ca6b7a2968a0b95e1e9bb7228dd47d65
18b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen/*
28b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen * Copyright (C) 2009 The Android Open Source Project
38b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen *
48b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen * Licensed under the Apache License, Version 2.0 (the "License");
54ee451de366474b9c228b4e5fa573795a715216dChris Lattner * you may not use this file except in compliance with the License.
64ee451de366474b9c228b4e5fa573795a715216dChris Lattner * You may obtain a copy of the License at
78b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen *
88b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen *      http://www.apache.org/licenses/LICENSE-2.0
98b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen *
10b8a1ccfc4b2eb84cc59465e2109019c9f85c9114Owen Anderson * Unless required by applicable law or agreed to in writing, software
11b8a1ccfc4b2eb84cc59465e2109019c9f85c9114Owen Anderson * distributed under the License is distributed on an "AS IS" BASIS,
128b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen * See the License for the specific language governing permissions and
148b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen * limitations under the License.
158b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen */
168b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen
178b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksenpackage android.webkit;
188b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen
198b94a14a782867b1da1f272b6f502562d0c2a1aaGordon Henriksen/**
20851ba39dab544ad986f150aec9573add9d978397Chris Lattner * A callback interface used to returns values asynchronously
218b477ed579794ba6d76915d56b3f448a7dd20120Owen Anderson */
22851ba39dab544ad986f150aec9573add9d978397Chris Lattnerpublic interface ValueCallback<T> {
232a9c671a51126def8020870103316e6aedc73edfGordon Henriksen    /**
2411112e0d7b1fb2741ed65a5085037918d1425916Dan Gohman     * Invoked when we have the result
25e2435da8abe5ca62c7f08f29c242b6b98e0ec7afGordon Henriksen     */
26f0356fe140af1a30587b9a86bcfb1b2c51b8ce20Jeffrey Yasskin    public void onReceiveValue(T value);
27c25e7581b9b8088910da31702d4ca21c4734c6d7Torok Edwin};
28f0356fe140af1a30587b9a86bcfb1b2c51b8ce20Jeffrey Yasskin