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

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

Issue 2835031: Rename GeolocationExceptionsView, make it more reusable. (Closed)
Patch Set: comments 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
Index: chrome/browser/cocoa/simple_content_exceptions_window_controller.h
diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h b/chrome/browser/cocoa/simple_content_exceptions_window_controller.h
similarity index 51%
rename from chrome/browser/cocoa/geolocation_exceptions_window_controller.h
rename to chrome/browser/cocoa/simple_content_exceptions_window_controller.h
index 76b29d83a6c5a76bd538e2d58fd462196f2e55ff..aa1cfcf800552fac79fb63e42fe9b0682df1f4d9 100644
--- a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h
+++ b/chrome/browser/cocoa/simple_content_exceptions_window_controller.h
@@ -6,30 +6,29 @@
#include "base/cocoa_protocols_mac.h"
#include "base/scoped_ptr.h"
-#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
+#include "chrome/browser/remove_rows_table_model.h"
-class GeolocationExceptionsTableModel;
-class GeolocationObserverBridge;
+class RemoveRowsObserverBridge;
// Controller for the geolocation exception dialog.
-@interface GeolocationExceptionsWindowController : NSWindowController
- <NSWindowDelegate,
- NSTableViewDataSource,
- NSTableViewDelegate> {
+@interface SimpleContentExceptionsWindowController : NSWindowController
+ <NSWindowDelegate,
+ NSTableViewDataSource,
+ NSTableViewDelegate> {
@private
IBOutlet NSTableView* tableView_;
IBOutlet NSButton* removeButton_;
IBOutlet NSButton* removeAllButton_;
IBOutlet NSButton* doneButton_;
- GeolocationContentSettingsMap* settingsMap_; // weak
- scoped_ptr<GeolocationExceptionsTableModel> model_;
- scoped_ptr<GeolocationObserverBridge> tableObserver_;
+ scoped_ptr<RemoveRowsTableModel> model_;
+ scoped_ptr<RemoveRowsObserverBridge> tableObserver_;
}
// Shows or makes frontmost the geolocation exceptions window.
-// Changes made by the user in the window are persisted in |settingsMap|.
-+ (id)controllerWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap;
+// Changes made by the user in the window are persisted in |model|.
+// Takes ownership of |model|.
++ (id)controllerWithTableModel:(RemoveRowsTableModel*)model;
// Sets the minimum width of the sheet and resizes it if necessary.
- (void)setMinWidth:(CGFloat)minWidth;

Powered by Google App Engine
This is Rietveld 408576698