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

Unified Diff: chrome/browser/ui/views/echo_dialog_views_chromeos.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: forgot to add echo_dialog_listener file Created 7 years, 10 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/browser/ui/views/echo_dialog_views_chromeos.h
diff --git a/chrome/browser/ui/views/echo_dialog_views_chromeos.h b/chrome/browser/ui/views/echo_dialog_views_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b0e08dedd6e07e16895ac391472980c0bff2a0e
--- /dev/null
+++ b/chrome/browser/ui/views/echo_dialog_views_chromeos.h
@@ -0,0 +1,51 @@
+// 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_UI_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
+#define CHROME_BROWSER_UI_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chrome/browser/ui/echo_dialog_chromeos.h"
+#include "ui/views/controls/link_listener.h"
+#include "ui/views/window/dialog_delegate.h"
+
+class EchoDialogView : public EchoDialog,
+ public views::DialogDelegateView,
+ public views::LinkListener {
+ public:
+ explicit EchoDialogView(EchoDialogListener* listener);
+ virtual ~EchoDialogView();
+
+ private:
+ // EchoDialog overrides.
+ virtual void InitForEnabledEcho(const string16& service_name,
+ const string16& origin) OVERRIDE;
+ virtual void InitForDisabledEcho() OVERRIDE;
+ virtual void Show(gfx::NativeWindow parent) OVERRIDE;
+
+ // views::DialogDelegate overrides.
+ virtual int GetDialogButtons() const OVERRIDE;
+ virtual int GetDefaultDialogButton() const OVERRIDE;
+ virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
+ virtual bool Cancel() OVERRIDE;
+ virtual bool Accept() OVERRIDE;
+
+ // views::WidgetDelegate overrides.
+ virtual ui::ModalType GetModalType() const OVERRIDE;
+ virtual bool ShouldShowWindowTitle() const OVERRIDE;
+ virtual bool ShouldShowWindowIcon() const OVERRIDE;
+
+ // views::LinkListener override.
+ virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
+
+ EchoDialogListener* listener_;
+ int ok_button_label_id_;
+ int cancel_button_label_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(EchoDialogView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
+

Powered by Google App Engine
This is Rietveld 408576698