| 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_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_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 | 10 |
| 11 class ImporterHost; | 11 class ImporterHost; |
| 12 class ImporterObserver; | 12 class ImporterObserver; |
| 13 class Profile; | 13 class Profile; |
| 14 | 14 |
| 15 namespace importer { | 15 namespace importer { |
| 16 | 16 |
| 17 struct SourceProfile; | 17 struct SourceProfile; |
| 18 | 18 |
| 19 // Shows an UI for importing and begins importing the specified |items| from | 19 // Shows an UI for importing and begins importing the specified |items| from |
| 20 // |source_profile| to |target_profile|. |importer_observer| is notified when | 20 // |source_profile| to |target_profile|. |importer_observer| is notified when |
| 21 // the process is complete, it can be NULL. |parent_window| is the window to | 21 // the process is complete, it can be NULL. |first_run| is true if it's invoked |
| 22 // parent the UI to, it can be NULL if there's nothing to parent to. |first_run| | 22 // in the first run UI. |
| 23 // is true if it's invoked in the first run UI. | 23 void ShowImportProgressDialog(uint16 items, |
| 24 void ShowImportProgressDialog(gfx::NativeWindow parent_window, | |
| 25 uint16 items, | |
| 26 ImporterHost* importer_host, | 24 ImporterHost* importer_host, |
| 27 ImporterObserver* importer_observer, | 25 ImporterObserver* importer_observer, |
| 28 const SourceProfile& source_profile, | 26 const SourceProfile& source_profile, |
| 29 Profile* target_profile, | 27 Profile* target_profile, |
| 30 bool first_run); | 28 bool first_run); |
| 31 | 29 |
| 32 } // namespace importer | 30 } // namespace importer |
| 33 | 31 |
| 34 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_ | 32 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_ |
| OLD | NEW |