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_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 |
OLD | NEW |