| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ | 5 #ifndef CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ |
| 6 #define CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ | 6 #define CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 class LoginHandlerMac; | 10 class LoginHandlerMac; |
| 11 | 11 |
| 12 // Controller of the sheet used by LoginHandlerMac. Interface Builder wants | 12 // Controller of the sheet used by LoginHandlerMac. Interface Builder wants |
| 13 // this to be in a .h file. | 13 // this to be in a .h file. |
| 14 @interface LoginHandlerSheet : NSWindowController { | 14 @interface LoginHandlerSheet : NSWindowController { |
| 15 @private | 15 @private |
| 16 IBOutlet NSTextField* nameField_; | 16 IBOutlet NSTextField* nameField_; |
| 17 IBOutlet NSSecureTextField* passwordField_; | 17 IBOutlet NSSecureTextField* passwordField_; |
| 18 LoginHandlerMac* handler_; // weak, owns us | 18 LoginHandlerMac* handler_; // weak, owns us |
| 19 } | 19 } |
| 20 - (id)initWithLoginHandler:(LoginHandlerMac*)handler; | 20 - (id)initWithLoginHandler:(LoginHandlerMac*)handler; |
| 21 - (IBAction)loginPressed:(id)sender; | 21 - (IBAction)loginPressed:(id)sender; |
| 22 - (IBAction)cancelPressed:(id)sender; | 22 - (IBAction)cancelPressed:(id)sender; |
| 23 - (void)sheetDidEnd:(NSWindow*)sheet | 23 - (void)sheetDidEnd:(NSWindow*)sheet |
| 24 returnCode:(int)returnCode | 24 returnCode:(int)returnCode |
| 25 contextInfo:(void *)contextInfo; | 25 contextInfo:(void*)contextInfo; |
| 26 - (void)autofillLogin:(NSString*)login password:(NSString*)password; |
| 26 @end | 27 @end |
| 27 | 28 |
| 28 #endif // CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ | 29 #endif // CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ |
| OLD | NEW |