Home | History | Annotate | Download | only in infobar
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 package org.chromium.chrome.browser.infobar;
      6 
      7 /**
      8  * A collection of listeners for different infobar events.
      9  */
     10 public class InfoBarListeners {
     11 
     12     /**
     13      * Called whenever an infobar is dismissed, either manually or as a side
     14      * effect of a navigation, replacing the infobar...
     15      */
     16     public interface Dismiss {
     17         void onInfoBarDismissed(InfoBar infoBar);
     18     }
     19 
     20     public interface Confirm extends Dismiss {
     21         /**
     22          * Called whenever an infobar's confirm or cancel button is clicked.
     23          */
     24         public void onConfirmInfoBarButtonClicked(
     25                 ConfirmInfoBar infoBar, boolean confirm);
     26     }
     27 
     28 }
     29