| 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_PROGRESS_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual gfx::Size GetPreferredSize() OVERRIDE; | 40 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 41 virtual void ViewHierarchyChanged(bool is_add, | 41 virtual void ViewHierarchyChanged(bool is_add, |
| 42 views::View* parent, | 42 views::View* parent, |
| 43 views::View* child) OVERRIDE; | 43 views::View* child) OVERRIDE; |
| 44 | 44 |
| 45 // views::DialogDelegate: | 45 // views::DialogDelegate: |
| 46 virtual int GetDialogButtons() const OVERRIDE; | 46 virtual int GetDialogButtons() const OVERRIDE; |
| 47 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 47 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 48 virtual string16 GetWindowTitle() const OVERRIDE; | 48 virtual string16 GetWindowTitle() const OVERRIDE; |
| 49 virtual bool Cancel() OVERRIDE; | 49 virtual bool Cancel() OVERRIDE; |
| 50 virtual views::View* GetContentsView() OVERRIDE; | |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 // Set up the control layout within this dialog. | 52 // Set up the control layout within this dialog. |
| 54 void InitControlLayout(); | 53 void InitControlLayout(); |
| 55 | 54 |
| 56 // importer::ImporterProgressObserver: | 55 // importer::ImporterProgressObserver: |
| 57 virtual void ImportStarted() OVERRIDE; | 56 virtual void ImportStarted() OVERRIDE; |
| 58 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; | 57 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; |
| 59 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; | 58 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; |
| 60 virtual void ImportEnded() OVERRIDE; | 59 virtual void ImportEnded() OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 84 // True if the import operation is in progress. | 83 // True if the import operation is in progress. |
| 85 bool importing_; | 84 bool importing_; |
| 86 | 85 |
| 87 // Are we importing a bookmarks.html file? | 86 // Are we importing a bookmarks.html file? |
| 88 bool bookmarks_import_; | 87 bool bookmarks_import_; |
| 89 | 88 |
| 90 DISALLOW_COPY_AND_ASSIGN(ImportProgressDialogView); | 89 DISALLOW_COPY_AND_ASSIGN(ImportProgressDialogView); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 #endif // CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_ | 92 #endif // CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_ |
| OLD | NEW |