Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / login_prompt_cocoa.h
blob1607da5a9dfcff95898d7653a9ee5ac3160cd62d
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_
8 #import <Cocoa/Cocoa.h>
10 class LoginHandlerMac;
12 // Controller of the sheet used by LoginHandlerMac. Interface Builder wants
13 // this to be in a .h file.
14 @interface LoginHandlerSheet : NSWindowController {
15 @private
16 IBOutlet NSTextField* nameField_;
17 IBOutlet NSSecureTextField* passwordField_;
18 IBOutlet NSTextField* explanationField_;
19 IBOutlet NSButton* loginButton_;
20 IBOutlet NSButton* cancelButton_;
21 LoginHandlerMac* handler_; // weak, owns us
23 - (id)initWithLoginHandler:(LoginHandlerMac*)handler;
24 - (IBAction)loginPressed:(id)sender;
25 - (IBAction)cancelPressed:(id)sender;
26 - (void)autofillLogin:(NSString*)login password:(NSString*)password;
27 - (void)setExplanation:(NSString*)explanation;
28 @end
30 #endif // CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_