Description[Mac] Add per-plugin exceptions to content settings.
Screenshot: http://www.dropmocks.com/mXMd
I'm adding a subclass of NSArrayController, TableModelArrayController, that binds to a RemoveRowsTableModel that can use groups and displays them using group rows in an NSTableView. This cleans up SimpleContentExceptionsWindowController a lot, and the class could also be used for other table models that use groups (keyword editor and autofill).
XIB changes: In SimpleContentExceptionsWindow.xib, bind table view to TableModelArrayController instead of using the dataSource outlet. Buttons call actions on TableModelArrayController, and table view delegate also points to it.
BUG=39252
TEST=SimpleContentExceptionsWindowControllerTest.*:TableModelArrayControllerTest.*:PluginExceptionsTableModelTest.*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59501
Patch Set 1 #
Total comments: 42
Patch Set 2 : address comments; add another unit test #Patch Set 3 : sync #
Total comments: 6
Patch Set 4 : move observerbridge to implementation #Patch Set 5 : nits #Patch Set 6 : use AutoReset for PluginExceptionsTableModelTest #Messages
Total messages: 15 (0 generated)
|