Home | History | Annotate | Download | only in ui
      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 #ifndef CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
      6 #define CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
      7 
      8 namespace chromeos {
      9 
     10 // A listener interface for the EchoDialog, so an interested party can be
     11 // notified about changes to the dialog. It is provided during EchoDialog
     12 // construction.
     13 class EchoDialogListener {
     14  public:
     15   // Called when the EchoDialog is accepted. After call to this method, the
     16   // listener will not be invoked again.
     17   virtual void OnAccept() = 0;
     18 
     19   // Called when the EchoDialog is canceled. After call to this method, the
     20   // listener will not be invoked again.
     21   virtual void OnCancel() = 0;
     22 
     23   // Called when a link in the EchoDialog is clicked.
     24   virtual void OnMoreInfoLinkClicked() = 0;
     25 
     26  protected:
     27   virtual ~EchoDialogListener() {}
     28 };
     29 
     30 }  // namespace chromeos
     31 
     32 #endif  // CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
     33