summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/ValueCallback.java
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2009-09-22 18:44:52 +0100
committerNicolas Roard <nicolas@android.com>2009-09-22 18:44:52 +0100
commit6c24b4d10223cb522e6bdbf0e334f61e672f4366 (patch)
treed420d9f17d5dcb8c5dbbf37400dbe375a8d4074e /core/java/android/webkit/ValueCallback.java
parent408cf85207a43c9169f9fb520a584d2858847d24 (diff)
Reimplement the settings to use async callbacks
Diffstat (limited to 'core/java/android/webkit/ValueCallback.java')
-rw-r--r--core/java/android/webkit/ValueCallback.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/java/android/webkit/ValueCallback.java b/core/java/android/webkit/ValueCallback.java
new file mode 100644
index 000000000000..d8c5cdce2372
--- /dev/null
+++ b/core/java/android/webkit/ValueCallback.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.webkit;
+
+/**
+ * A callback interface used to returns values asynchronously
+ *
+ * @hide pending council approval
+ */
+public interface ValueCallback<T> {
+ /**
+ * Invoked when we have the result
+ */
+ public void onReceiveValue(T value);
+};