| 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 "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/views/window/dialog_delegate.h" | 9 #include "ui/views/window/dialog_delegate.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class TabModalConfirmDialogViews : public views::DialogDelegate { | 23 class TabModalConfirmDialogViews : public views::DialogDelegate { |
| 24 public: | 24 public: |
| 25 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, | 25 TabModalConfirmDialogViews(TabModalConfirmDialogDelegate* delegate, |
| 26 TabContents* tab_contents); | 26 TabContents* tab_contents); |
| 27 | 27 |
| 28 // views::DialogDelegate: | 28 // views::DialogDelegate: |
| 29 virtual string16 GetWindowTitle() const OVERRIDE; | 29 virtual string16 GetWindowTitle() const OVERRIDE; |
| 30 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 30 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 31 virtual bool Cancel() OVERRIDE; | 31 virtual bool Cancel() OVERRIDE; |
| 32 virtual bool Accept() OVERRIDE; | 32 virtual bool Accept() OVERRIDE; |
| 33 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; |
| 33 | 34 |
| 34 // views::WidgetDelegate: | 35 // views::WidgetDelegate: |
| 35 virtual views::View* GetContentsView() OVERRIDE; | 36 virtual views::View* GetContentsView() OVERRIDE; |
| 36 virtual views::Widget* GetWidget() OVERRIDE; | 37 virtual views::Widget* GetWidget() OVERRIDE; |
| 37 virtual const views::Widget* GetWidget() const OVERRIDE; | 38 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 38 virtual void DeleteDelegate() OVERRIDE; | 39 virtual void DeleteDelegate() OVERRIDE; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 virtual ~TabModalConfirmDialogViews(); | 42 virtual ~TabModalConfirmDialogViews(); |
| 42 | 43 |
| 43 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; | 44 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; |
| 44 | 45 |
| 45 // The message box view whose commands we handle. | 46 // The message box view whose commands we handle. |
| 46 views::MessageBoxView* message_box_view_; | 47 views::MessageBoxView* message_box_view_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); | 49 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogViews); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ | 52 #endif // CHROME_BROWSER_UI_VIEWS_TAB_MODAL_CONFIRM_DIALOG_VIEWS_H_ |
| OLD | NEW |