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 21 matching lines...) Expand all Loading... |
32 public views::LinkListener { | 32 public views::LinkListener { |
33 public: | 33 public: |
34 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, | 34 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, |
35 content::WebContents* web_contents); | 35 content::WebContents* web_contents); |
36 | 36 |
37 // views::DialogDelegate: | 37 // views::DialogDelegate: |
38 virtual string16 GetWindowTitle() const OVERRIDE; | 38 virtual string16 GetWindowTitle() const OVERRIDE; |
39 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 39 virtual string16 GetDialogButtonLabel(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 | 43 |
43 // views::WidgetDelegate: | 44 // views::WidgetDelegate: |
44 virtual views::View* GetContentsView() OVERRIDE; | 45 virtual views::View* GetContentsView() OVERRIDE; |
45 virtual views::NonClientFrameView* CreateNonClientFrameView( | 46 virtual views::NonClientFrameView* CreateNonClientFrameView( |
46 views::Widget* widget) OVERRIDE; | 47 views::Widget* widget) OVERRIDE; |
47 virtual views::Widget* GetWidget() OVERRIDE; | 48 virtual views::Widget* GetWidget() OVERRIDE; |
48 virtual const views::Widget* GetWidget() const OVERRIDE; | 49 virtual const views::Widget* GetWidget() const OVERRIDE; |
49 virtual void DeleteDelegate() OVERRIDE; | 50 virtual void DeleteDelegate() OVERRIDE; |
50 virtual ui::ModalType GetModalType() const OVERRIDE; | 51 virtual ui::ModalType GetModalType() const OVERRIDE; |
51 | 52 |
(...skipping 15 matching lines...) Expand all Loading... |
67 // The message box view whose commands we handle. | 68 // The message box view whose commands we handle. |
68 views::MessageBoxView* message_box_view_; | 69 views::MessageBoxView* message_box_view_; |
69 | 70 |
70 views::Widget* dialog_; | 71 views::Widget* dialog_; |
71 content::BrowserContext* browser_context_; | 72 content::BrowserContext* browser_context_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); | 74 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
OLD | NEW |