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