| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
| 9 #include "chrome/common/pref_member.h" | 9 #include "chrome/common/pref_member.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 IBOutlet NSToolbar* toolbar_; | 35 IBOutlet NSToolbar* toolbar_; |
| 36 | 36 |
| 37 // The views we'll rotate through | 37 // The views we'll rotate through |
| 38 IBOutlet NSView* basicsView_; | 38 IBOutlet NSView* basicsView_; |
| 39 IBOutlet NSView* personalStuffView_; | 39 IBOutlet NSView* personalStuffView_; |
| 40 IBOutlet NSView* underTheHoodView_; | 40 IBOutlet NSView* underTheHoodView_; |
| 41 // The last page the user was on when they opened the Options window. | 41 // The last page the user was on when they opened the Options window. |
| 42 IntegerPrefMember lastSelectedPage_; | 42 IntegerPrefMember lastSelectedPage_; |
| 43 | 43 |
| 44 // The groups of the Basics view for layout fixup. |
| 45 IBOutlet NSArray* basicsGroupStartup_; |
| 46 IBOutlet NSArray* basicsGroupHomePage_; |
| 47 IBOutlet NSArray* basicsGroupToolbar_; |
| 48 IBOutlet NSArray* basicsGroupSearchEngine_; |
| 49 IBOutlet NSArray* basicsGroupDefaultBrowser_; |
| 50 |
| 51 // The groups of the Personal Stuff view for layout fixup. |
| 52 IBOutlet NSArray* personalStuffGroupPasswords_; |
| 53 IBOutlet NSArray* personalStuffGroupAutofill_; |
| 54 IBOutlet NSArray* personalStuffGroupBrowserData_; |
| 55 IBOutlet NSArray* personalStuffGroupThemes_; |
| 56 |
| 44 // Having two animations around is bad (they fight), so just use one. | 57 // Having two animations around is bad (they fight), so just use one. |
| 45 scoped_nsobject<NSViewAnimation> animation_; | 58 scoped_nsobject<NSViewAnimation> animation_; |
| 46 | 59 |
| 47 IBOutlet NSArrayController* customPagesArrayController_; | 60 IBOutlet NSArrayController* customPagesArrayController_; |
| 48 | 61 |
| 49 // Basics panel | 62 // Basics panel |
| 50 IntegerPrefMember restoreOnStartup_; | 63 IntegerPrefMember restoreOnStartup_; |
| 51 scoped_nsobject<CustomHomePagesModel> customPagesSource_; | 64 scoped_nsobject<CustomHomePagesModel> customPagesSource_; |
| 52 BooleanPrefMember newTabPageIsHomePage_; | 65 BooleanPrefMember newTabPageIsHomePage_; |
| 53 StringPrefMember homepage_; | 66 StringPrefMember homepage_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // When a toolbar button is clicked | 118 // When a toolbar button is clicked |
| 106 - (IBAction)toolbarButtonSelected:(id)sender; | 119 - (IBAction)toolbarButtonSelected:(id)sender; |
| 107 | 120 |
| 108 // Usable from cocoa bindings to hook up the custom home pages table. | 121 // Usable from cocoa bindings to hook up the custom home pages table. |
| 109 @property(readonly) CustomHomePagesModel* customPagesSource; | 122 @property(readonly) CustomHomePagesModel* customPagesSource; |
| 110 | 123 |
| 111 // NSNotification sent when the prefs window is closed. | 124 // NSNotification sent when the prefs window is closed. |
| 112 extern NSString* const kUserDoneEditingPrefsNotification; | 125 extern NSString* const kUserDoneEditingPrefsNotification; |
| 113 | 126 |
| 114 @end | 127 @end |
| OLD | NEW |