| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FIRST_RUN_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 virtual void ImportCanceled(); | 299 virtual void ImportCanceled(); |
| 300 virtual void ImportComplete(); | 300 virtual void ImportComplete(); |
| 301 void RunLoop(); | 301 void RunLoop(); |
| 302 private: | 302 private: |
| 303 void Finish(); | 303 void Finish(); |
| 304 bool loop_running_; | 304 bool loop_running_; |
| 305 int import_result_; | 305 int import_result_; |
| 306 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver); | 306 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver); |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 #if defined(OS_MACOSX) | |
| 310 // Show the First Run UI to the user, allowing them to create shortcuts for | |
| 311 // the app, import their bookmarks and other data from another browser into | |
| 312 // |profile| and perhaps some other tasks. | |
| 313 // |process_singleton| is used to lock the handling of CopyData messages | |
| 314 // while the First Run UI is visible. | |
| 315 // |homepage_defined| true indicates that homepage is defined in master | |
| 316 // preferences and should not be imported from another browser. | |
| 317 // |import_items| specifies the items to import, specified in master | |
| 318 // preferences and will override default behavior of importer. | |
| 319 // |dont_import_items| specifies the items *not* to import, specified in master | |
| 320 // preferences and will override default behavior of importer. | |
| 321 // |search_engine_experiment| indicates whether the experimental search engine | |
| 322 // window should be shown. | |
| 323 // |randomize_search_engine_experiment| is true if the logos in the search | |
| 324 // engine window should be shown in randomized order. | |
| 325 // Returns true if the user clicked "Start", false if the user pressed "Cancel" | |
| 326 // or closed the dialog. | |
| 327 bool OpenFirstRunDialog(Profile* profile, | |
| 328 bool homepage_defined, | |
| 329 int import_items, | |
| 330 int dont_import_items, | |
| 331 bool search_engine_experiment, | |
| 332 bool randomize_search_engine_experiment, | |
| 333 ProcessSingleton* process_singleton); | |
| 334 #endif // OS_MACOSX | |
| 335 | |
| 336 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 309 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |