| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/cocoa_protocols_mac.h" | 9 #include "base/cocoa_protocols_mac.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 IBOutlet NSButton* addButton_; | 24 IBOutlet NSButton* addButton_; |
| 25 IBOutlet NSButton* removeButton_; | 25 IBOutlet NSButton* removeButton_; |
| 26 IBOutlet NSButton* removeAllButton_; | 26 IBOutlet NSButton* removeAllButton_; |
| 27 IBOutlet NSButton* doneButton_; | 27 IBOutlet NSButton* doneButton_; |
| 28 | 28 |
| 29 ContentSettingsType settingsType_; | 29 ContentSettingsType settingsType_; |
| 30 HostContentSettingsMap* settingsMap_; // weak | 30 HostContentSettingsMap* settingsMap_; // weak |
| 31 HostContentSettingsMap* otrSettingsMap_; // weak | 31 HostContentSettingsMap* otrSettingsMap_; // weak |
| 32 scoped_ptr<ContentExceptionsTableModel> model_; | 32 scoped_ptr<ContentExceptionsTableModel> model_; |
| 33 | 33 |
| 34 // Is set if "Ask" should be a valid option in the "action" popup. | 34 // Is set if "Session" should be a valid option in the "action" popup. |
| 35 BOOL showAsk_; | 35 BOOL showSession_; |
| 36 | 36 |
| 37 // Is set if adding and editing exceptions for the current OTR session should | 37 // Is set if adding and editing exceptions for the current OTR session should |
| 38 // be allowed. | 38 // be allowed. |
| 39 BOOL otrAllowed_; | 39 BOOL otrAllowed_; |
| 40 | 40 |
| 41 // Listens for changes to the content settings and reloads the data when they | 41 // Listens for changes to the content settings and reloads the data when they |
| 42 // change. See comment in -modelDidChange in the mm file for details. | 42 // change. See comment in -modelDidChange in the mm file for details. |
| 43 scoped_ptr<UpdatingContentSettingsObserver> tableObserver_; | 43 scoped_ptr<UpdatingContentSettingsObserver> tableObserver_; |
| 44 | 44 |
| 45 // If this is set to NO, notifications by |tableObserver_| are ignored. This | 45 // If this is set to NO, notifications by |tableObserver_| are ignored. This |
| (...skipping 22 matching lines...) Expand all Loading... |
| 68 - (IBAction)removeAllExceptions:(id)sender; | 68 - (IBAction)removeAllExceptions:(id)sender; |
| 69 // Closes the sheet and ends the modal loop. | 69 // Closes the sheet and ends the modal loop. |
| 70 - (IBAction)closeSheet:(id)sender; | 70 - (IBAction)closeSheet:(id)sender; |
| 71 | 71 |
| 72 @end | 72 @end |
| 73 | 73 |
| 74 @interface ContentExceptionsWindowController(VisibleForTesting) | 74 @interface ContentExceptionsWindowController(VisibleForTesting) |
| 75 - (void)cancel:(id)sender; | 75 - (void)cancel:(id)sender; |
| 76 - (BOOL)editingNewException; | 76 - (BOOL)editingNewException; |
| 77 @end | 77 @end |
| OLD | NEW |