| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/views/window/dialog_delegate.h" | 10 #include "ui/views/window/dialog_delegate.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | 12 class TabContents; |
| 13 typedef TabContents TabContentsWrapper; |
| 13 class TabModalConfirmDialogDelegate; | 14 class TabModalConfirmDialogDelegate; |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 class MessageBoxView; | 17 class MessageBoxView; |
| 17 } | 18 } |
| 18 | 19 |
| 19 // Displays a tab-modal dialog, i.e. a dialog that will block the current page | 20 // Displays a tab-modal dialog, i.e. a dialog that will block the current page |
| 20 // but still allow the user to switch to a different page. | 21 // but still allow the user to switch to a different page. |
| 21 // To display the dialog, allocate this object on the heap. It will open the | 22 // To display the dialog, allocate this object on the heap. It will open the |
| 22 // dialog from its constructor and then delete itself when the user dismisses | 23 // dialog from its constructor and then delete itself when the user dismisses |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 | 44 |
| 44 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; | 45 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; |
| 45 | 46 |
| 46 // The message box view whose commands we handle. | 47 // The message box view whose commands we handle. |
| 47 views::MessageBoxView* message_box_view_; | 48 views::MessageBoxView* message_box_view_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); | 50 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
| OLD | NEW |