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

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

Issue 2932009: Mac: Tweak content settings window. (Closed)
Patch Set: fffffffffffffffff Created 10 years, 5 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
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 #import "base/cocoa_protocols_mac.h" 7 #import "base/cocoa_protocols_mac.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/common/content_settings_types.h" 9 #include "chrome/common/content_settings_types.h"
10 #include "chrome/browser/pref_member.h" 10 #include "chrome/browser/pref_member.h"
(...skipping 16 matching lines...) Expand all
27 // Indices of the various notifications settings in the geolocation radio group. 27 // Indices of the various notifications settings in the geolocation radio group.
28 const NSInteger kNotificationsEnabledIndex = 0; 28 const NSInteger kNotificationsEnabledIndex = 0;
29 const NSInteger kNotificationsAskIndex = 1; 29 const NSInteger kNotificationsAskIndex = 1;
30 const NSInteger kNotificationsDisabledIndex = 2; 30 const NSInteger kNotificationsDisabledIndex = 2;
31 31
32 namespace ContentSettingsDialogControllerInternal { 32 namespace ContentSettingsDialogControllerInternal {
33 class PrefObserverBridge; 33 class PrefObserverBridge;
34 } 34 }
35 35
36 class Profile; 36 class Profile;
37 @class TabViewPickerTable;
37 38
38 // This controller manages a dialog that lets the user manage the content 39 // This controller manages a dialog that lets the user manage the content
39 // settings for several content setting types. 40 // settings for several content setting types.
40 @interface ContentSettingsDialogController 41 @interface ContentSettingsDialogController
41 : NSWindowController<NSWindowDelegate, NSTabViewDelegate> { 42 : NSWindowController<NSWindowDelegate, NSTabViewDelegate> {
42 @private 43 @private
43 IBOutlet NSTabView* tabView_; 44 IBOutlet NSTabView* tabView_;
45 IBOutlet TabViewPickerTable* tabViewPicker_;
44 Profile* profile_; // weak 46 Profile* profile_; // weak
45 IntegerPrefMember lastSelectedTab_; 47 IntegerPrefMember lastSelectedTab_;
46 BooleanPrefMember clearSiteDataOnExit_; 48 BooleanPrefMember clearSiteDataOnExit_;
47 scoped_ptr<ContentSettingsDialogControllerInternal::PrefObserverBridge> 49 scoped_ptr<ContentSettingsDialogControllerInternal::PrefObserverBridge>
48 observer_; // Watches for pref changes. 50 observer_; // Watches for pref changes.
49 } 51 }
50 52
51 // Show the content settings dialog associated with the given profile (or the 53 // Show the content settings dialog associated with the given profile (or the
52 // original profile if this is an incognito profile). If no content settings 54 // original profile if this is an incognito profile). If no content settings
53 // dialog exists for this profile, create one and show it. Any resulting 55 // dialog exists for this profile, create one and show it. Any resulting
(...skipping 23 matching lines...) Expand all
77 @property(assign, nonatomic) NSInteger cookieSettingIndex; 79 @property(assign, nonatomic) NSInteger cookieSettingIndex;
78 @property(assign, nonatomic) BOOL blockThirdPartyCookies; 80 @property(assign, nonatomic) BOOL blockThirdPartyCookies;
79 @property(assign, nonatomic) BOOL clearSiteDataOnExit; 81 @property(assign, nonatomic) BOOL clearSiteDataOnExit;
80 @property(assign, nonatomic) NSInteger imagesEnabledIndex; 82 @property(assign, nonatomic) NSInteger imagesEnabledIndex;
81 @property(assign, nonatomic) NSInteger javaScriptEnabledIndex; 83 @property(assign, nonatomic) NSInteger javaScriptEnabledIndex;
82 @property(assign, nonatomic) NSInteger popupsEnabledIndex; 84 @property(assign, nonatomic) NSInteger popupsEnabledIndex;
83 @property(assign, nonatomic) NSInteger pluginsEnabledIndex; 85 @property(assign, nonatomic) NSInteger pluginsEnabledIndex;
84 @property(assign, nonatomic) NSInteger geolocationSettingIndex; 86 @property(assign, nonatomic) NSInteger geolocationSettingIndex;
85 @property(assign, nonatomic) NSInteger notificationsSettingIndex; 87 @property(assign, nonatomic) NSInteger notificationsSettingIndex;
86 @end 88 @end
OLDNEW
« no previous file with comments | « chrome/app/nibs/ContentSettings.xib ('k') | chrome/browser/cocoa/content_settings_dialog_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698