summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 08:37:22 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 08:37:22 +0000
commit9435c4c6cd6ef245fd9b5a66dd990400e638ae46 (patch)
tree1ae625b7104d7a12f0e22bb92837d36856c56362 /chrome/browser/cocoa/geolocation_exceptions_window_controller.h
parent82df52ead5f3e27ac2c745b89c3d4e7475d54918 (diff)
downloadchromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.zip
chromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.tar.gz
chromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.tar.bz2
[Mac] Make exceptions dialog a sheet.
XIB changes (applying to ContentExceptionsWindow.xib and GeolocationExceptionsWindow.xib): The window is now drawn in Aqua style, with window margins, Aqua buttons and text labels for them. At the bottom right of the window there is an additional button for closing the sheet, hooked up to the |doneButton_| outlet in the file's owner and with action |closeSheet:|. The lefthand side buttons are inside a |GTMWidthBasedTweaker|, as is the done button. The actual tweaking is done by a newly added |GTMUILocalizerAndLayoutTweaker|. BUG=38021 TEST=Preferences > Under the Hood > Content Settings > Exceptions should be a sheet. Review URL: http://codereview.chromium.org/1760001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/geolocation_exceptions_window_controller.h')
-rw-r--r--chrome/browser/cocoa/geolocation_exceptions_window_controller.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
index 9de67a1..f93b9af 100644
--- a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
+++ b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
@@ -20,6 +20,7 @@ class GeolocationObserverBridge;
IBOutlet NSTableView* tableView_;
IBOutlet NSButton* removeButton_;
IBOutlet NSButton* removeAllButton_;
+ IBOutlet NSButton* doneButton_;
GeolocationContentSettingsMap* settingsMap_; // weak
scoped_ptr<GeolocationContentSettingsTableModel> model_;
@@ -28,7 +29,13 @@ class GeolocationObserverBridge;
// Shows or makes frontmost the geolocation exceptions window.
// Changes made by the user in the window are persisted in |settingsMap|.
-+ (id)showWindowWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap;
++ (id)controllerWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap;
+
+// Sets the minimum width of the sheet and resizes it if necessary.
+- (void)setMinWidth:(CGFloat)minWidth;
+
+- (void)attachSheetTo:(NSWindow*)window;
+- (IBAction)closeSheet:(id)sender;
- (IBAction)removeException:(id)sender;
- (IBAction)removeAllExceptions:(id)sender;