summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/content_exceptions_window_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/content_exceptions_window_controller.h')
-rw-r--r--chrome/browser/cocoa/content_exceptions_window_controller.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/content_exceptions_window_controller.h b/chrome/browser/cocoa/content_exceptions_window_controller.h
index 91a5b33..1d1bc2a 100644
--- a/chrome/browser/cocoa/content_exceptions_window_controller.h
+++ b/chrome/browser/cocoa/content_exceptions_window_controller.h
@@ -24,6 +24,7 @@ class UpdatingContentSettingsObserver;
IBOutlet NSButton* addButton_;
IBOutlet NSButton* removeButton_;
IBOutlet NSButton* removeAllButton_;
+ IBOutlet NSButton* doneButton_;
ContentSettingsType settingsType_;
HostContentSettingsMap* settingsMap_; // weak
@@ -45,14 +46,22 @@ class UpdatingContentSettingsObserver;
scoped_ptr<HostContentSettingsMap::PatternSettingPair> newException_;
}
-// Shows or makes frontmost the content exceptions window for |settingsType|.
+// Returns the content exceptions window controller for |settingsType|.
// Changes made by the user in the window are persisted in |settingsMap|.
-+ (id)showForType:(ContentSettingsType)settingsType
- settingsMap:(HostContentSettingsMap*)settingsMap;
++ (id)controllerForType:(ContentSettingsType)settingsType
+ settingsMap:(HostContentSettingsMap*)settingsMap;
+
+// Shows the exceptions dialog as a modal sheet attached to |window|.
+- (void)attachSheetTo:(NSWindow*)window;
+
+// Sets the minimum width of the sheet and resizes it if necessary.
+- (void)setMinWidth:(CGFloat)minWidth;
- (IBAction)addException:(id)sender;
- (IBAction)removeException:(id)sender;
- (IBAction)removeAllExceptions:(id)sender;
+// Closes the sheet and ends the modal loop.
+- (IBAction)closeSheet:(id)sender;
@end