summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/geolocation_exceptions_window_controller.h')
-rw-r--r--chrome/browser/cocoa/geolocation_exceptions_window_controller.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
new file mode 100644
index 0000000..9de67a1
--- /dev/null
+++ b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/cocoa_protocols_mac.h"
+#include "base/scoped_ptr.h"
+#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
+
+class GeolocationContentSettingsTableModel;
+class GeolocationObserverBridge;
+
+// Controller for the geolocation exception dialog.
+@interface GeolocationExceptionsWindowController : NSWindowController
+ <NSWindowDelegate,
+ NSTableViewDataSource,
+ NSTableViewDelegate> {
+ @private
+ IBOutlet NSTableView* tableView_;
+ IBOutlet NSButton* removeButton_;
+ IBOutlet NSButton* removeAllButton_;
+
+ GeolocationContentSettingsMap* settingsMap_; // weak
+ scoped_ptr<GeolocationContentSettingsTableModel> model_;
+ scoped_ptr<GeolocationObserverBridge> tableObserver_;
+}
+
+// Shows or makes frontmost the geolocation exceptions window.
+// Changes made by the user in the window are persisted in |settingsMap|.
++ (id)showWindowWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap;
+
+- (IBAction)removeException:(id)sender;
+- (IBAction)removeAllExceptions:(id)sender;
+
+@end