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

Unified Diff: chrome/browser/chromeos/ui/echo_dialog_listener.h

Issue 12317109: Add a dialog for getting user consent in the echo redeem flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/ui/echo_dialog_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/echo_dialog_listener.h
diff --git a/chrome/browser/chromeos/ui/echo_dialog_listener.h b/chrome/browser/chromeos/ui/echo_dialog_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..b2bdb080f5c5d4526561bf22466271dd616f95b2
--- /dev/null
+++ b/chrome/browser/chromeos/ui/echo_dialog_listener.h
@@ -0,0 +1,32 @@
+// Copyright 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
+#define CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
+
+namespace chromeos {
+
+// A listener interface for the EchoDialog, so an interested party can be
+// notified about changes to the dialog. It is provided during EchoDialog
+// construction.
+class EchoDialogListener {
+ public:
+ // Called when the EchoDialog is accepted. After call to this method, the
+ // listener will not be invoked again.
+ virtual void OnAccept() = 0;
+
+ // Called when the EchoDialog is canceled. After call to this method, the
+ // listener will not be invoked again.
+ virtual void OnCancel() = 0;
+
+ // Called when a link in the EchoDialog is clicked.
+ virtual void OnMoreInfoLinkClicked() = 0;
+
+ protected:
+ virtual ~EchoDialogListener() {}
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_LISTENER_H_
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/ui/echo_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698