| 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_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_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 "ui/views/window/dialog_delegate.h" | 10 #include "ui/views/window/dialog_delegate.h" |
| 11 | 11 |
| 12 class Browser; | 12 class Browser; |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 class MessageBoxView; | 15 class MessageBoxView; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class DownloadInProgressDialogView : public views::DialogDelegate { | 18 class DownloadInProgressDialogView : public views::DialogDelegate { |
| 19 public: | 19 public: |
| 20 static void Show(Browser* browser, gfx::NativeWindow parent_window); | 20 static void Show(Browser* browser, gfx::NativeWindow parent); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 explicit DownloadInProgressDialogView(Browser* browser); | 23 explicit DownloadInProgressDialogView(Browser* browser); |
| 24 virtual ~DownloadInProgressDialogView(); | 24 virtual ~DownloadInProgressDialogView(); |
| 25 | 25 |
| 26 // views::DialogDelegate: | 26 // views::DialogDelegate: |
| 27 virtual int GetDefaultDialogButton() const OVERRIDE; | 27 virtual int GetDefaultDialogButton() const OVERRIDE; |
| 28 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 28 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 29 virtual bool Cancel() OVERRIDE; | 29 virtual bool Cancel() OVERRIDE; |
| 30 virtual bool Accept() OVERRIDE; | 30 virtual bool Accept() OVERRIDE; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 43 string16 title_text_; | 43 string16 title_text_; |
| 44 string16 ok_button_text_; | 44 string16 ok_button_text_; |
| 45 string16 cancel_button_text_; | 45 string16 cancel_button_text_; |
| 46 | 46 |
| 47 gfx::Size dialog_dimensions_; | 47 gfx::Size dialog_dimensions_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressDialogView); | 49 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressDialogView); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_H_ | 52 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_IN_PROGRESS_DIALOG_VIEW_H_ |
| OLD | NEW |