OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #import <Cocoa/Cocoa.h> | |
6 | |
7 #import "base/mac/cocoa_protocols.h" | |
8 #include "base/scoped_ptr.h" | |
9 #include "chrome/browser/remove_rows_table_model.h" | |
10 #import "chrome/browser/ui/cocoa/table_model_array_controller.h" | |
11 | |
12 class RemoveRowsObserverBridge; | |
13 | |
14 // Controller for the geolocation exception dialog. | |
15 @interface SimpleContentExceptionsWindowController : NSWindowController | |
16 <NSWindowDelegate> { | |
17 @private | |
18 IBOutlet NSTableView* tableView_; | |
19 IBOutlet NSButton* removeButton_; | |
20 IBOutlet NSButton* removeAllButton_; | |
21 IBOutlet NSButton* doneButton_; | |
22 IBOutlet TableModelArrayController* arrayController_; | |
23 | |
24 scoped_ptr<RemoveRowsTableModel> model_; | |
25 } | |
26 | |
27 // Shows or makes frontmost the exceptions window. | |
28 // Changes made by the user in the window are persisted in |model|. | |
29 // Takes ownership of |model|. | |
30 + (id)controllerWithTableModel:(RemoveRowsTableModel*)model; | |
31 | |
32 // Sets the minimum width of the sheet and resizes it if necessary. | |
33 - (void)setMinWidth:(CGFloat)minWidth; | |
34 | |
35 - (void)attachSheetTo:(NSWindow*)window; | |
36 - (IBAction)closeSheet:(id)sender; | |
37 | |
38 @end | |
OLD | NEW |