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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarListeners.java

Issue 24109002: [InfoBar] Upstram basic infobar flow for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstream_infobar_full
Patch Set: Fix License header in two more files Created 7 years, 3 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: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarListeners.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarListeners.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarListeners.java
new file mode 100644
index 0000000000000000000000000000000000000000..f54a9490463a83393d03ddce644f31b92319217a
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarListeners.java
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 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.chrome.browser.infobar;
+
+/**
+ * A collection of listeners for different infobar events.
+ */
+public class InfoBarListeners {
+
+ /**
+ * Called whenever an infobar is dismissed, either manually or as a side
+ * effect of a navigation, replacing the infobar...
+ */
+ public interface Dismiss {
+ void onInfoBarDismissed(InfoBar infoBar);
+ }
+
+ public interface Confirm extends Dismiss {
+ /**
+ * Called whenever an infobar's confirm or cancel button is clicked.
+ */
+ public void onConfirmInfoBarButtonClicked(
+ ConfirmInfoBar infoBar, boolean confirm);
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698