| 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_IMPORT_PROGRESS_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_IMPORT_PROGRESS_DIALOG_H_ |
| 6 #define CHROME_BROWSER_IMPORT_PROGRESS_DIALOG_H_ | 6 #define CHROME_BROWSER_IMPORT_PROGRESS_DIALOG_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "chrome/browser/importer/importer.h" | 10 #include "chrome/browser/importer/importer.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 - (IBAction)cancel:(id)sender; | 44 - (IBAction)cancel:(id)sender; |
| 45 | 45 |
| 46 // Closes the dialog. | 46 // Closes the dialog. |
| 47 - (void)closeDialog; | 47 - (void)closeDialog; |
| 48 | 48 |
| 49 // Methods called by importer_host via ImporterObserverBridge. | 49 // Methods called by importer_host via ImporterObserverBridge. |
| 50 - (void)ImportItemStarted:(importer::ImportItem)item; | 50 - (void)ImportItemStarted:(importer::ImportItem)item; |
| 51 - (void)ImportItemEnded:(importer::ImportItem)item; | 51 - (void)ImportItemEnded:(importer::ImportItem)item; |
| 52 - (void)ImportEnded; | 52 - (void)ImportEnded; |
| 53 | 53 |
| 54 @property(retain) NSString* explanatoryText; | 54 @property (nonatomic, retain) NSString* explanatoryText; |
| 55 @property(retain) NSString* favoritesStatusText; | 55 @property (nonatomic, retain) NSString* favoritesStatusText; |
| 56 @property(retain) NSString* searchStatusText; | 56 @property (nonatomic, retain) NSString* searchStatusText; |
| 57 @property(retain) NSString* savedPasswordStatusText; | 57 @property (nonatomic, retain) NSString* savedPasswordStatusText; |
| 58 @property(retain) NSString* historyStatusText; | 58 @property (nonatomic, retain) NSString* historyStatusText; |
| 59 | 59 |
| 60 @property(retain) NSColor* favoritesImportEnabled; | 60 @property (nonatomic, retain) NSColor* favoritesImportEnabled; |
| 61 @property(retain) NSColor* searchImportEnabled; | 61 @property (nonatomic, retain) NSColor* searchImportEnabled; |
| 62 @property(retain) NSColor* passwordImportEnabled; | 62 @property (nonatomic, retain) NSColor* passwordImportEnabled; |
| 63 @property(retain) NSColor* historyImportEnabled; | 63 @property (nonatomic, retain) NSColor* historyImportEnabled; |
| 64 | 64 |
| 65 @end | 65 @end |
| 66 | 66 |
| 67 // C++ -> objc bridge for import status notifications. | 67 // C++ -> objc bridge for import status notifications. |
| 68 class ImporterObserverBridge : public ImporterHost::Observer { | 68 class ImporterObserverBridge : public ImporterHost::Observer { |
| 69 public: | 69 public: |
| 70 ImporterObserverBridge(ImportProgressDialogController* owner) | 70 ImporterObserverBridge(ImportProgressDialogController* owner) |
| 71 : owner_(owner) {} | 71 : owner_(owner) {} |
| 72 virtual ~ImporterObserverBridge() {} | 72 virtual ~ImporterObserverBridge() {} |
| 73 | 73 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 [owner_ ImportEnded]; | 92 [owner_ ImportEnded]; |
| 93 } | 93 } |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 ImportProgressDialogController* owner_; | 96 ImportProgressDialogController* owner_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(ImporterObserverBridge); | 98 DISALLOW_COPY_AND_ASSIGN(ImporterObserverBridge); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_IMPORT_PROGRESS_DIALOG_H_ | 101 #endif // CHROME_BROWSER_IMPORT_PROGRESS_DIALOG_H_ |
| OLD | NEW |