| 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_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/cocoa_protocols_mac.h" | 10 #include "base/cocoa_protocols_mac.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 IBOutlet NSTextField* customizeSyncDescriptionTextField_; | 21 IBOutlet NSTextField* customizeSyncDescriptionTextField_; |
| 22 | 22 |
| 23 // The member variables below are connected to the dialog with KVO. | 23 // The member variables below are connected to the dialog with KVO. |
| 24 | 24 |
| 25 // The registered flags indicate which model types are enabled for | 25 // The registered flags indicate which model types are enabled for |
| 26 // syncing. | 26 // syncing. |
| 27 BOOL bookmarksRegistered_; | 27 BOOL bookmarksRegistered_; |
| 28 BOOL preferencesRegistered_; | 28 BOOL preferencesRegistered_; |
| 29 BOOL autofillRegistered_; | 29 BOOL autofillRegistered_; |
| 30 BOOL themesRegistered_; | 30 BOOL themesRegistered_; |
| 31 BOOL extensionsRegistered_; |
| 31 | 32 |
| 32 // The preferred flags indicate which model types the user would | 33 // The preferred flags indicate which model types the user would |
| 33 // like to sync. | 34 // like to sync. |
| 34 BOOL bookmarksPreferred_; | 35 BOOL bookmarksPreferred_; |
| 35 BOOL preferencesPreferred_; | 36 BOOL preferencesPreferred_; |
| 36 BOOL autofillPreferred_; | 37 BOOL autofillPreferred_; |
| 37 BOOL themesPreferred_; | 38 BOOL themesPreferred_; |
| 39 BOOL extensionsPreferred_; |
| 38 } | 40 } |
| 39 | 41 |
| 40 // syncService cannot be NULL. | 42 // syncService cannot be NULL. |
| 41 - (id)initWithProfileSyncService:(ProfileSyncService*)syncService; | 43 - (id)initWithProfileSyncService:(ProfileSyncService*)syncService; |
| 42 | 44 |
| 43 // Run as a sheet modal to the given window. | 45 // Run as a sheet modal to the given window. |
| 44 - (void)runAsModalSheet:(NSWindow*)parentWindow; | 46 - (void)runAsModalSheet:(NSWindow*)parentWindow; |
| 45 | 47 |
| 46 // End the sheet without saving the new preferred data types. | 48 // End the sheet without saving the new preferred data types. |
| 47 - (IBAction)endSheetWithCancel:(id)sender; | 49 - (IBAction)endSheetWithCancel:(id)sender; |
| 48 | 50 |
| 49 // Save the new preferred data types and end the sheet. | 51 // Save the new preferred data types and end the sheet. |
| 50 - (IBAction)endSheetWithOK:(id)sender; | 52 - (IBAction)endSheetWithOK:(id)sender; |
| 51 | 53 |
| 52 // Properties for bindings. | 54 // Properties for bindings. |
| 53 @property(assign) BOOL bookmarksRegistered; | 55 @property(assign) BOOL bookmarksRegistered; |
| 54 @property(assign) BOOL preferencesRegistered; | 56 @property(assign) BOOL preferencesRegistered; |
| 55 @property(assign) BOOL autofillRegistered; | 57 @property(assign) BOOL autofillRegistered; |
| 56 @property(assign) BOOL themesRegistered; | 58 @property(assign) BOOL themesRegistered; |
| 59 @property(assign) BOOL extensionsRegistered; |
| 57 | 60 |
| 58 @property(assign) BOOL bookmarksPreferred; | 61 @property(assign) BOOL bookmarksPreferred; |
| 59 @property(assign) BOOL preferencesPreferred; | 62 @property(assign) BOOL preferencesPreferred; |
| 60 @property(assign) BOOL autofillPreferred; | 63 @property(assign) BOOL autofillPreferred; |
| 61 @property(assign) BOOL themesPreferred; | 64 @property(assign) BOOL themesPreferred; |
| 65 @property(assign) BOOL extensionsPreferred; |
| 62 | 66 |
| 63 @property(readonly) BOOL okEnabled; | 67 @property(readonly) BOOL okEnabled; |
| 64 | 68 |
| 65 @end | 69 @end |
| 66 | 70 |
| 67 #endif // CHROME_BROWSER_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ | 71 #endif // CHROME_BROWSER_COCOA_SYNC_CUSTOMIZE_CONTROLLER_H_ |
| OLD | NEW |