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

Unified Diff: chrome/browser/cocoa/content_settings_dialog_controller.h

Issue 2063020: Add observers to ContentSettingsDialogController so that the dialog will show... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/content_settings_dialog_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/content_settings_dialog_controller.h
===================================================================
--- chrome/browser/cocoa/content_settings_dialog_controller.h (revision 49029)
+++ chrome/browser/cocoa/content_settings_dialog_controller.h (working copy)
@@ -9,6 +9,21 @@
#include "chrome/common/content_settings_types.h"
#include "chrome/browser/pref_member.h"
+// Index of the "enabled" and "disabled" radio group settings in all tabs except
+// for the cookies tab.
+const NSInteger kContentSettingsEnabledIndex = 0;
+const NSInteger kContentSettingsDisabledIndex = 1;
+
+// Indices of the various cookie settings in the cookie radio group.
+const NSInteger kCookieEnabledIndex = 0;
+const NSInteger kCookieAskIndex = 1;
+const NSInteger kCookieDisabledIndex = 2;
+
+// Indices of the various geolocation settings in the geolocation radio group.
+const NSInteger kGeolocationEnabledIndex = 0;
+const NSInteger kGeolocationAskIndex = 1;
+const NSInteger kGeolocationDisabledIndex = 2;
+
namespace ContentSettingsDialogControllerInternal {
class PrefObserverBridge;
}
@@ -50,3 +65,15 @@
- (IBAction)showGeolocationExceptions:(id)sender;
@end
+
+@interface ContentSettingsDialogController (TestingAPI)
+// Properties that the radio groups and checkboxes are bound to.
+@property(assign, nonatomic) NSInteger cookieSettingIndex;
+@property(assign, nonatomic) BOOL blockThirdPartyCookies;
+@property(assign, nonatomic) BOOL clearSiteDataOnExit;
+@property(assign, nonatomic) NSInteger imagesEnabledIndex;
+@property(assign, nonatomic) NSInteger javaScriptEnabledIndex;
+@property(assign, nonatomic) NSInteger popupsEnabledIndex;
+@property(assign, nonatomic) NSInteger pluginsEnabledIndex;
+@property(assign, nonatomic) NSInteger geolocationSettingIndex;
+@end
« no previous file with comments | « no previous file | chrome/browser/cocoa/content_settings_dialog_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698