Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/cocoa/preferences_window_controller.h

Issue 3246004: Hide mac background mode prefs ui if background mode is not enabled. (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/preferences_window_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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/browser/options_window.h" 9 #include "chrome/browser/options_window.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 StringPrefMember autoOpenFiles_; 124 StringPrefMember autoOpenFiles_;
125 BooleanPrefMember translateEnabled_; 125 BooleanPrefMember translateEnabled_;
126 BooleanPrefMember tabsToLinks_; 126 BooleanPrefMember tabsToLinks_;
127 FontLanguageSettingsController* fontLanguageSettings_; 127 FontLanguageSettingsController* fontLanguageSettings_;
128 StringPrefMember currentTheme_; 128 StringPrefMember currentTheme_;
129 IBOutlet NSButton* enableLoggingCheckbox_; 129 IBOutlet NSButton* enableLoggingCheckbox_;
130 scoped_ptr<PrefSetObserver> proxyPrefs_; 130 scoped_ptr<PrefSetObserver> proxyPrefs_;
131 BOOL proxiesConfigureButtonEnabled_; 131 BOOL proxiesConfigureButtonEnabled_;
132 BOOL restoreButtonsEnabled_; 132 BOOL restoreButtonsEnabled_;
133 BOOL restoreURLsEnabled_; 133 BOOL restoreURLsEnabled_;
134 IBOutlet NSTextField* backgroundModeTitle_;
135 IBOutlet NSButton* backgroundModeCheckbox_;
136 IBOutlet NSTextField* backgroundModeDescription_;
137 IBOutlet NSButton* backgroundModeLearnMore_;
134 BooleanPrefMember backgroundModeEnabled_; 138 BooleanPrefMember backgroundModeEnabled_;
135 } 139 }
136 140
137 // Designated initializer. |profile| should not be NULL. 141 // Designated initializer. |profile| should not be NULL.
138 - (id)initWithProfile:(Profile*)profile initialPage:(OptionsPage)initialPage; 142 - (id)initWithProfile:(Profile*)profile initialPage:(OptionsPage)initialPage;
139 143
140 // Show the preferences window. 144 // Show the preferences window.
141 - (void)showPreferences:(id)sender; 145 - (void)showPreferences:(id)sender;
142 146
143 // Switch to the given preference page. 147 // Switch to the given preference page.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 212
209 // Returns the (normalized) page corresponding to the given toolbar item. 213 // Returns the (normalized) page corresponding to the given toolbar item.
210 // Should be called only after awakeFromNib is. 214 // Should be called only after awakeFromNib is.
211 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; 215 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem;
212 216
213 // Returns the view corresponding to the given page. Should be called 217 // Returns the view corresponding to the given page. Should be called
214 // only after awakeFromNib is. 218 // only after awakeFromNib is.
215 - (NSView*)getPrefsViewForPage:(OptionsPage)page; 219 - (NSView*)getPrefsViewForPage:(OptionsPage)page;
216 220
217 @end 221 @end
OLDNEW
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/cocoa/preferences_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698