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


// 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
                                                      NSTableViewDelegate> {
  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;


Generated by  Doxygen 1.6.0   Back to index