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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/echo_dialog_chromeos.h"
11 #include "ui/views/controls/link_listener.h"
12 #include "ui/views/window/dialog_delegate.h"
13
14 class EchoDialogView : public EchoDialog,
15 public views::DialogDelegateView,
16 public views::LinkListener {
17 public:
18 explicit EchoDialogView(EchoDialogListener* listener);
19 virtual ~EchoDialogView();
20
21 private:
22 // EchoDialog overrides.
23 virtual void InitForEnabledEcho(const string16& service_name,
24 const string16& origin) OVERRIDE;
25 virtual void InitForDisabledEcho() OVERRIDE;
26 virtual void Show(gfx::NativeWindow parent) OVERRIDE;
27
28 // views::DialogDelegate overrides.
29 virtual int GetDialogButtons() const OVERRIDE;
30 virtual int GetDefaultDialogButton() const OVERRIDE;
31 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
32 virtual bool Cancel() OVERRIDE;
33 virtual bool Accept() OVERRIDE;
34
35 // views::WidgetDelegate overrides.
36 virtual ui::ModalType GetModalType() const OVERRIDE;
37 virtual bool ShouldShowWindowTitle() const OVERRIDE;
38 virtual bool ShouldShowWindowIcon() const OVERRIDE;
39
40 // views::LinkListener override.
41 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
42
43 EchoDialogListener* listener_;
44 int ok_button_label_id_;
45 int cancel_button_label_id_;
46
47 DISALLOW_COPY_AND_ASSIGN(EchoDialogView);
48 };
49
50 #endif // CHROME_BROWSER_UI_VIEWS_ECHO_DIALOG_VIEWS_CHROMEOS_H_
51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698