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 #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/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 class Profile; | 41 class Profile; |
42 @class TabViewPickerTable; | 42 @class TabViewPickerTable; |
43 | 43 |
44 // This controller manages a dialog that lets the user manage the content | 44 // This controller manages a dialog that lets the user manage the content |
45 // settings for several content setting types. | 45 // settings for several content setting types. |
46 @interface ContentSettingsDialogController | 46 @interface ContentSettingsDialogController |
47 : NSWindowController<NSWindowDelegate, NSTabViewDelegate> { | 47 : NSWindowController<NSWindowDelegate, NSTabViewDelegate> { |
48 @private | 48 @private |
49 IBOutlet NSTabView* tabView_; | 49 IBOutlet NSTabView* tabView_; |
50 IBOutlet TabViewPickerTable* tabViewPicker_; | 50 IBOutlet TabViewPickerTable* tabViewPicker_; |
| 51 IBOutlet NSMatrix* pluginDefaultSettingMatrix_; |
51 Profile* profile_; // weak | 52 Profile* profile_; // weak |
52 IntegerPrefMember lastSelectedTab_; | 53 IntegerPrefMember lastSelectedTab_; |
53 BooleanPrefMember clearSiteDataOnExit_; | 54 BooleanPrefMember clearSiteDataOnExit_; |
54 PrefChangeRegistrar registrar_; | 55 PrefChangeRegistrar registrar_; |
55 scoped_ptr<ContentSettingsDialogControllerInternal::PrefObserverBridge> | 56 scoped_ptr<ContentSettingsDialogControllerInternal::PrefObserverBridge> |
56 observer_; // Watches for pref changes. | 57 observer_; // Watches for pref changes. |
57 } | 58 } |
58 | 59 |
59 // Show the content settings dialog associated with the given profile (or the | 60 // Show the content settings dialog associated with the given profile (or the |
60 // original profile if this is an incognito profile). If no content settings | 61 // original profile if this is an incognito profile). If no content settings |
(...skipping 24 matching lines...) Expand all Loading... |
85 @property(nonatomic) NSInteger cookieSettingIndex; | 86 @property(nonatomic) NSInteger cookieSettingIndex; |
86 @property(nonatomic) BOOL blockThirdPartyCookies; | 87 @property(nonatomic) BOOL blockThirdPartyCookies; |
87 @property(nonatomic) BOOL clearSiteDataOnExit; | 88 @property(nonatomic) BOOL clearSiteDataOnExit; |
88 @property(nonatomic) NSInteger imagesEnabledIndex; | 89 @property(nonatomic) NSInteger imagesEnabledIndex; |
89 @property(nonatomic) NSInteger javaScriptEnabledIndex; | 90 @property(nonatomic) NSInteger javaScriptEnabledIndex; |
90 @property(nonatomic) NSInteger popupsEnabledIndex; | 91 @property(nonatomic) NSInteger popupsEnabledIndex; |
91 @property(nonatomic) NSInteger pluginsEnabledIndex; | 92 @property(nonatomic) NSInteger pluginsEnabledIndex; |
92 @property(nonatomic) NSInteger geolocationSettingIndex; | 93 @property(nonatomic) NSInteger geolocationSettingIndex; |
93 @property(nonatomic) NSInteger notificationsSettingIndex; | 94 @property(nonatomic) NSInteger notificationsSettingIndex; |
94 @end | 95 @end |
OLD | NEW |