summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/content_settings_dialog_controller.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 18:33:40 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 18:33:40 +0000
commit4b9d8c0f0154f47a4d09c4b3d976aa49719e71a4 (patch)
tree573d2c21dceb2b2ead60c2b3963924f3d36d4a3e /chrome/browser/cocoa/content_settings_dialog_controller.h
parentd909382538a31eda85fb2ec1339fb5fd7276ed90 (diff)
downloadchromium_src-4b9d8c0f0154f47a4d09c4b3d976aa49719e71a4.zip
chromium_src-4b9d8c0f0154f47a4d09c4b3d976aa49719e71a4.tar.gz
chromium_src-4b9d8c0f0154f47a4d09c4b3d976aa49719e71a4.tar.bz2
Add Notifications pane to content settings.
THIS CHANGES THE BEHAVIOR OF HOW PERMISSIONS WORK: Previosly an infobar was shown every time an application requested notification permissions. Now, this is shown only the first time an application requests permissions, and the choice is remembered thereafter. If the kDesktopNotificationDefaultContentSetting preference is set, no infobar is shown at all. This CL also adds content settings UI to manage the exceptions list on mac, win, and linux. xib changes: Add a new pane to the content settings tab view, with the right title, radio box strings, actions, and bindings. BUG=45547 TEST=Go to a site that shows notifications. It should only ask for permissions once, and remember the user choice after that. Content Settings->Notifications->Exceptions should show the exceptions list. The content settings pane should be fully functional, and the radio button options ("don't ask") should have an effect on pages that weren't visited before. Review URL: http://codereview.chromium.org/2825028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51673 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/content_settings_dialog_controller.h')
-rw-r--r--chrome/browser/cocoa/content_settings_dialog_controller.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/content_settings_dialog_controller.h b/chrome/browser/cocoa/content_settings_dialog_controller.h
index 4481637..0820cdd 100644
--- a/chrome/browser/cocoa/content_settings_dialog_controller.h
+++ b/chrome/browser/cocoa/content_settings_dialog_controller.h
@@ -24,6 +24,11 @@ const NSInteger kGeolocationEnabledIndex = 0;
const NSInteger kGeolocationAskIndex = 1;
const NSInteger kGeolocationDisabledIndex = 2;
+// Indices of the various notifications settings in the geolocation radio group.
+const NSInteger kNotificationsEnabledIndex = 0;
+const NSInteger kNotificationsAskIndex = 1;
+const NSInteger kNotificationsDisabledIndex = 2;
+
namespace ContentSettingsDialogControllerInternal {
class PrefObserverBridge;
}
@@ -63,6 +68,7 @@ class Profile;
- (IBAction)showPluginsExceptions:(id)sender;
- (IBAction)showPopupsExceptions:(id)sender;
- (IBAction)showGeolocationExceptions:(id)sender;
+- (IBAction)showNotificationsExceptions:(id)sender;
@end
@@ -76,4 +82,5 @@ class Profile;
@property(assign, nonatomic) NSInteger popupsEnabledIndex;
@property(assign, nonatomic) NSInteger pluginsEnabledIndex;
@property(assign, nonatomic) NSInteger geolocationSettingIndex;
+@property(assign, nonatomic) NSInteger notificationsSettingIndex;
@end