| 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_IMPORTER_IMPORT_LOCK_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_LOCK_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_LOCK_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_LOCK_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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // views::View: | 30 // views::View: |
| 31 virtual gfx::Size GetPreferredSize() OVERRIDE; | 31 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 32 virtual void Layout() OVERRIDE; | 32 virtual void Layout() OVERRIDE; |
| 33 | 33 |
| 34 // views::DialogDelegate: | 34 // views::DialogDelegate: |
| 35 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 35 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 36 virtual string16 GetWindowTitle() const OVERRIDE; | 36 virtual string16 GetWindowTitle() const OVERRIDE; |
| 37 virtual bool Accept() OVERRIDE; | 37 virtual bool Accept() OVERRIDE; |
| 38 virtual bool Cancel() OVERRIDE; | 38 virtual bool Cancel() OVERRIDE; |
| 39 virtual views::View* GetContentsView() OVERRIDE; | |
| 40 | 39 |
| 41 private: | 40 private: |
| 42 views::Label* description_label_; | 41 views::Label* description_label_; |
| 43 | 42 |
| 44 // Utility class that does the actual import. | 43 // Utility class that does the actual import. |
| 45 scoped_refptr<ImporterHost> importer_host_; | 44 scoped_refptr<ImporterHost> importer_host_; |
| 46 | 45 |
| 47 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogView); | 46 DISALLOW_COPY_AND_ASSIGN(ImportLockDialogView); |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 #endif // CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_LOCK_DIALOG_VIEW_H_ | 49 #endif // CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_LOCK_DIALOG_VIEW_H_ |
| OLD | NEW |