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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 private: | 52 private: |
53 virtual ~TabModalConfirmDialogViews(); | 53 virtual ~TabModalConfirmDialogViews(); |
54 | 54 |
55 // TabModalConfirmDialog: | 55 // TabModalConfirmDialog: |
56 virtual void AcceptTabModalDialog() OVERRIDE; | 56 virtual void AcceptTabModalDialog() OVERRIDE; |
57 virtual void CancelTabModalDialog() OVERRIDE; | 57 virtual void CancelTabModalDialog() OVERRIDE; |
58 | 58 |
59 // TabModalConfirmDialogCloseDelegate: | 59 // TabModalConfirmDialogCloseDelegate: |
60 virtual void CloseDialog() OVERRIDE; | 60 virtual void CloseDialog() OVERRIDE; |
| 61 virtual void SetPreventCloseOnLoadStart(bool prevent) OVERRIDE; |
61 | 62 |
62 // views::LinkListener: | 63 // views::LinkListener: |
63 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 64 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
64 | 65 |
| 66 content::WebContents* web_contents_; |
| 67 |
65 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; | 68 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; |
66 | 69 |
67 // The message box view whose commands we handle. | 70 // The message box view whose commands we handle. |
68 views::MessageBoxView* message_box_view_; | 71 views::MessageBoxView* message_box_view_; |
69 | 72 |
70 views::Widget* dialog_; | 73 views::Widget* dialog_; |
71 content::BrowserContext* browser_context_; | 74 content::BrowserContext* browser_context_; |
72 | 75 |
73 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); | 76 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); |
74 }; | 77 }; |
75 | 78 |
76 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 79 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
OLD | NEW |