| 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/cocoa/table_model_array_controller.h" | 5 #import "chrome/browser/cocoa/table_model_array_controller.h" |
| 6 | 6 |
| 7 #include "app/table_model.h" | 7 #include "app/table_model.h" |
| 8 #include "base/logging.h" |
| 8 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 9 #include "chrome/browser/remove_rows_table_model.h" | 10 #include "chrome/browser/remove_rows_table_model.h" |
| 10 | 11 |
| 11 @interface TableModelArrayController (PrivateMethods) | 12 @interface TableModelArrayController (PrivateMethods) |
| 12 | 13 |
| 13 - (NSUInteger)offsetForGroupID:(int)groupID; | 14 - (NSUInteger)offsetForGroupID:(int)groupID; |
| 14 - (NSUInteger)offsetForGroupID:(int)groupID startingOffset:(NSUInteger)offset; | 15 - (NSUInteger)offsetForGroupID:(int)groupID startingOffset:(NSUInteger)offset; |
| 15 - (NSIndexSet*)controllerRowsForModelRowsInRange:(NSRange)range; | 16 - (NSIndexSet*)controllerRowsForModelRowsInRange:(NSRange)range; |
| 16 - (void)setModelRows:(RemoveRowsTableModel::Rows*)modelRows | 17 - (void)setModelRows:(RemoveRowsTableModel::Rows*)modelRows |
| 17 fromControllerRows:(NSIndexSet*)rows; | 18 fromControllerRows:(NSIndexSet*)rows; |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 return indexes; | 237 return indexes; |
| 237 } | 238 } |
| 238 | 239 |
| 239 // Actions -------------------------------------------------------------------- | 240 // Actions -------------------------------------------------------------------- |
| 240 | 241 |
| 241 - (IBAction)removeAll:(id)sender { | 242 - (IBAction)removeAll:(id)sender { |
| 242 model_->RemoveAll(); | 243 model_->RemoveAll(); |
| 243 } | 244 } |
| 244 | 245 |
| 245 @end | 246 @end |
| OLD | NEW |