summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/login_prompt_cocoa.h
blob: 1607da5a9dfcff95898d7653a9ee5ac3160cd62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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.

#ifndef CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_
#define CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_

#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 {
 @private
  IBOutlet NSTextField* nameField_;
  IBOutlet NSSecureTextField* passwordField_;
  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)setExplanation:(NSString*)explanation;
@end

#endif  // CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_