summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 12:36:39 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 12:36:39 +0000
commit476c6d05c1abc015ff3b479f8f2132a0fc604b9e (patch)
tree6d1358e495366f708539c70f91699470cac99fcb /chrome/browser/cocoa/geolocation_exceptions_window_controller.mm
parent0d5b9e252bcfd5ac4dbf0141bec384381fd18151 (diff)
downloadchromium_src-476c6d05c1abc015ff3b479f8f2132a0fc604b9e.zip
chromium_src-476c6d05c1abc015ff3b479f8f2132a0fc604b9e.tar.gz
chromium_src-476c6d05c1abc015ff3b479f8f2132a0fc604b9e.tar.bz2
Renames GeolocationContentSettingsTableModel to GeolocationExceptionsTableModel
TEST=Compiles BUG=40286 Review URL: http://codereview.chromium.org/2069016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/geolocation_exceptions_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/geolocation_exceptions_window_controller.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm b/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm
index 7c7bee4..fbb69d3 100644
--- a/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm
+++ b/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm
@@ -12,13 +12,13 @@
#import "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
-#include "chrome/browser/geolocation/geolocation_content_settings_table_model.h"
+#include "chrome/browser/geolocation/geolocation_exceptions_table_model.h"
#include "grit/generated_resources.h"
#include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
@interface GeolocationExceptionsWindowController (Private)
- (id)initWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap;
-- (void)selectedRows:(GeolocationContentSettingsTableModel::Rows*)rows;
+- (void)selectedRows:(GeolocationExceptionsTableModel::Rows*)rows;
- (void)adjustEditingButtons;
- (void)modelDidChange;
@end
@@ -71,7 +71,7 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil;
ofType:@"nib"];
if ((self = [super initWithWindowNibPath:nibpath owner:self])) {
settingsMap_ = settingsMap;
- model_.reset(new GeolocationContentSettingsTableModel(settingsMap_));
+ model_.reset(new GeolocationExceptionsTableModel(settingsMap_));
tableObserver_.reset(new GeolocationObserverBridge(self));
model_->SetObserver(tableObserver_.get());
@@ -154,7 +154,7 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil;
}
- (IBAction)removeException:(id)sender {
- GeolocationContentSettingsTableModel::Rows rows;
+ GeolocationExceptionsTableModel::Rows rows;
[self selectedRows:&rows];
model_->RemoveExceptions(rows);
}
@@ -196,7 +196,7 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil;
// Private --------------------------------------------------------------------
// Returns the selected rows.
-- (void)selectedRows:(GeolocationContentSettingsTableModel::Rows*)rows {
+- (void)selectedRows:(GeolocationExceptionsTableModel::Rows*)rows {
NSIndexSet* selection = [tableView_ selectedRowIndexes];
for (NSUInteger index = [selection lastIndex]; index != NSNotFound;
index = [selection indexLessThanIndex:index])
@@ -206,7 +206,7 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil;
// This method appropriately sets the enabled states on the table's editing
// buttons.
- (void)adjustEditingButtons {
- GeolocationContentSettingsTableModel::Rows rows;
+ GeolocationExceptionsTableModel::Rows rows;
[self selectedRows:&rows];
[removeButton_ setEnabled:model_->CanRemoveExceptions(rows)];
[removeAllButton_ setEnabled:([tableView_ numberOfRows] > 0)];