| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/content_exceptions_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/content_exceptions_window_controller.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/l10n_util_mac.h" | 8 #include "app/l10n_util_mac.h" |
| 9 #include "app/table_model_observer.h" | 9 #include "app/table_model_observer.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #import "base/mac/mac_util.h" | 11 #import "base/mac/mac_util.h" |
| 12 #import "base/scoped_nsobject.h" | 12 #import "base/scoped_nsobject.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
| 14 #include "chrome/browser/content_exceptions_table_model.h" | 14 #include "chrome/browser/content_exceptions_table_model.h" |
| 15 #include "chrome/browser/content_setting_combo_model.h" | 15 #include "chrome/browser/content_setting_combo_model.h" |
| 16 #include "chrome/common/chrome_switches.h" | |
| 17 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
| 18 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 20 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 19 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 21 | 20 |
| 22 @interface ContentExceptionsWindowController (Private) | 21 @interface ContentExceptionsWindowController (Private) |
| 23 - (id)initWithType:(ContentSettingsType)settingsType | 22 - (id)initWithType:(ContentSettingsType)settingsType |
| 24 settingsMap:(HostContentSettingsMap*)settingsMap | 23 settingsMap:(HostContentSettingsMap*)settingsMap |
| 25 otrSettingsMap:(HostContentSettingsMap*)otrSettingsMap; | 24 otrSettingsMap:(HostContentSettingsMap*)otrSettingsMap; |
| 26 - (void)updateRow:(NSInteger)row | 25 - (void)updateRow:(NSInteger)row |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 479 |
| 481 // The model caches its data, meaning we need to recreate it on every change. | 480 // The model caches its data, meaning we need to recreate it on every change. |
| 482 model_.reset(new ContentExceptionsTableModel( | 481 model_.reset(new ContentExceptionsTableModel( |
| 483 settingsMap_, otrSettingsMap_, settingsType_)); | 482 settingsMap_, otrSettingsMap_, settingsType_)); |
| 484 | 483 |
| 485 [tableView_ reloadData]; | 484 [tableView_ reloadData]; |
| 486 [self adjustEditingButtons]; | 485 [self adjustEditingButtons]; |
| 487 } | 486 } |
| 488 | 487 |
| 489 @end | 488 @end |
| OLD | NEW |