OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" | 10 #include "chrome/browser/ui/tab_modal_confirm_dialog.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // dialog from its constructor and then delete itself when the user dismisses | 27 // dialog from its constructor and then delete itself when the user dismisses |
28 // the dialog. | 28 // the dialog. |
29 class TabModalConfirmDialogViews : public TabModalConfirmDialog, | 29 class TabModalConfirmDialogViews : public TabModalConfirmDialog, |
30 public views::DialogDelegate, | 30 public views::DialogDelegate, |
31 public views::LinkListener { | 31 public views::LinkListener { |
32 public: | 32 public: |
33 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, | 33 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, |
34 content::WebContents* web_contents); | 34 content::WebContents* web_contents); |
35 | 35 |
36 // views::DialogDelegate: | 36 // views::DialogDelegate: |
37 virtual base::string16 GetWindowTitle() const OVERRIDE; | 37 virtual base::string16 GetWindowTitle() const override; |
38 virtual base::string16 GetDialogButtonLabel( | 38 virtual base::string16 GetDialogButtonLabel( |
39 ui::DialogButton button) const OVERRIDE; | 39 ui::DialogButton button) const override; |
40 virtual bool Cancel() OVERRIDE; | 40 virtual bool Cancel() override; |
41 virtual bool Accept() OVERRIDE; | 41 virtual bool Accept() override; |
42 virtual bool Close() OVERRIDE; | 42 virtual bool Close() override; |
43 | 43 |
44 // views::WidgetDelegate: | 44 // views::WidgetDelegate: |
45 virtual views::View* GetContentsView() OVERRIDE; | 45 virtual views::View* GetContentsView() override; |
46 virtual views::Widget* GetWidget() OVERRIDE; | 46 virtual views::Widget* GetWidget() override; |
47 virtual const views::Widget* GetWidget() const OVERRIDE; | 47 virtual const views::Widget* GetWidget() const override; |
48 virtual void DeleteDelegate() OVERRIDE; | 48 virtual void DeleteDelegate() override; |
49 virtual ui::ModalType GetModalType() const OVERRIDE; | 49 virtual ui::ModalType GetModalType() const override; |
50 | 50 |
51 private: | 51 private: |
52 virtual ~TabModalConfirmDialogViews(); | 52 virtual ~TabModalConfirmDialogViews(); |
53 | 53 |
54 // TabModalConfirmDialog: | 54 // TabModalConfirmDialog: |
55 virtual void AcceptTabModalDialog() OVERRIDE; | 55 virtual void AcceptTabModalDialog() override; |
56 virtual void CancelTabModalDialog() OVERRIDE; | 56 virtual void CancelTabModalDialog() override; |
57 | 57 |
58 // TabModalConfirmDialogCloseDelegate: | 58 // TabModalConfirmDialogCloseDelegate: |
59 virtual void CloseDialog() OVERRIDE; | 59 virtual void CloseDialog() override; |
60 | 60 |
61 // views::LinkListener: | 61 // views::LinkListener: |
62 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 62 virtual void LinkClicked(views::Link* source, int event_flags) override; |
63 | 63 |
64 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; | 64 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; |
65 | 65 |
66 // The message box view whose commands we handle. | 66 // The message box view whose commands we handle. |
67 views::MessageBoxView* message_box_view_; | 67 views::MessageBoxView* message_box_view_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); | 69 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 72 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
OLD | NEW |