Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: mojo/public/java/src/org/chromium/mojo/system/AsyncWaiterCallback.java

Issue 288993002: Add AsyncWaiter implementation to java API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TODO Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/java/src/org/chromium/mojo/system/AsyncWaiterCallback.java
diff --git a/mojo/public/java/src/org/chromium/mojo/system/AsyncWaiterCallback.java b/mojo/public/java/src/org/chromium/mojo/system/AsyncWaiterCallback.java
new file mode 100644
index 0000000000000000000000000000000000000000..4217bbfe4f12a2c50f5f0b409b34cde9f2480476
--- /dev/null
+++ b/mojo/public/java/src/org/chromium/mojo/system/AsyncWaiterCallback.java
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.mojo.system;
+
+/**
+ * Callback passed to {@link AsyncWaiter#asyncWait}.
+ */
+public interface AsyncWaiterCallback {
bulach 2014/05/15 19:32:58 nit: if this can only be used within the AsyncWait
rmcilroy 2014/05/15 22:36:51 +1
qsr 2014/05/19 12:12:09 That was causing an issue with our jni generator.
+ /**
+ * Called when the handle is ready.
+ */
+ public void onResult(int result);
+
+ /**
+ * Called when an error occurred while waiting.
+ */
+ public void onError(MojoException exception);
+}

Powered by Google App Engine
This is Rietveld 408576698