blob: c2543c517cbfce24049a509f39d2f50b756e7351 [file] [log] [blame]
// Copyright (c) 2012 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>
class LoginHandlerMac;
// Controller of the sheet used by LoginHandlerMac. Interface Builder wants
// this to be in a .h file.
@interface LoginHandlerSheet : NSWindowController {
IBOutlet NSTextField* nameField_;
IBOutlet NSSecureTextField* passwordField_;
IBOutlet NSTextField* authorityField_;
IBOutlet NSTextField* explanationField_;
IBOutlet NSButton* loginButton_;
IBOutlet NSButton* cancelButton_;
LoginHandlerMac* handler_; // weak, owns us
- (id)initWithLoginHandler:(LoginHandlerMac*)handler;
- (IBAction)loginPressed:(id)sender;
- (IBAction)cancelPressed:(id)sender;
- (void)autofillLogin:(NSString*)login password:(NSString*)password;
- (void)setAuthority:(NSString*)authority;
- (void)setExplanation:(NSString*)explanation;