Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

simple_content_exceptions_window_controller.h

// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Cocoa/Cocoa.h>

#include "base/cocoa_protocols_mac.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/remove_rows_table_model.h"

class RemoveRowsObserverBridge;

// Controller for the geolocation exception dialog.
@interface SimpleContentExceptionsWindowController : NSWindowController
                                                     <NSWindowDelegate,
                                                      NSTableViewDataSource,
                                                      NSTableViewDelegate> {
 @private
  IBOutlet NSTableView* tableView_;
  IBOutlet NSButton* removeButton_;
  IBOutlet NSButton* removeAllButton_;
  IBOutlet NSButton* doneButton_;

  scoped_ptr<RemoveRowsTableModel> model_;
  scoped_ptr<RemoveRowsObserverBridge> tableObserver_;
}

// Shows or makes frontmost the geolocation exceptions window.
// Changes made by the user in the window are persisted in |model|.
// Takes ownership of |model|.
+ (id)controllerWithTableModel:(RemoveRowsTableModel*)model;

// Sets the minimum width of the sheet and resizes it if necessary.
- (void)setMinWidth:(CGFloat)minWidth;

- (void)attachSheetTo:(NSWindow*)window;
- (IBAction)closeSheet:(id)sender;

- (IBAction)removeRow:(id)sender;
- (IBAction)removeAll:(id)sender;

@end

Generated by  Doxygen 1.6.0   Back to index