| 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_UI_LOGIN_LOGIN_PROMPT_MAC_H_ |
| 6 #define CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 class LoginHandlerMac; | 11 class LoginHandlerMac; |
| 12 | 12 |
| 13 // Controller of the sheet used by LoginHandlerMac. Interface Builder wants | 13 // Controller of the sheet used by LoginHandlerMac. Interface Builder wants |
| 14 // this to be in a .h file. | 14 // this to be in a .h file. |
| 15 @interface LoginHandlerSheet : NSWindowController { | 15 @interface LoginHandlerSheet : NSWindowController { |
| 16 @private | 16 @private |
| 17 IBOutlet NSTextField* nameField_; | 17 IBOutlet NSTextField* nameField_; |
| 18 IBOutlet NSSecureTextField* passwordField_; | 18 IBOutlet NSSecureTextField* passwordField_; |
| 19 IBOutlet NSTextField* explanationField_; | 19 IBOutlet NSTextField* explanationField_; |
| 20 IBOutlet NSButton* loginButton_; | 20 IBOutlet NSButton* loginButton_; |
| 21 IBOutlet NSButton* cancelButton_; | 21 IBOutlet NSButton* cancelButton_; |
| 22 LoginHandlerMac* handler_; // weak, owns us | 22 LoginHandlerMac* handler_; // weak, owns us |
| 23 } | 23 } |
| 24 - (id)initWithLoginHandler:(LoginHandlerMac*)handler; | 24 - (id)initWithLoginHandler:(LoginHandlerMac*)handler; |
| 25 - (IBAction)loginPressed:(id)sender; | 25 - (IBAction)loginPressed:(id)sender; |
| 26 - (IBAction)cancelPressed:(id)sender; | 26 - (IBAction)cancelPressed:(id)sender; |
| 27 - (void)sheetDidEnd:(NSWindow*)sheet | 27 - (void)sheetDidEnd:(NSWindow*)sheet |
| 28 returnCode:(int)returnCode | 28 returnCode:(int)returnCode |
| 29 contextInfo:(void*)contextInfo; | 29 contextInfo:(void*)contextInfo; |
| 30 - (void)autofillLogin:(NSString*)login password:(NSString*)password; | 30 - (void)autofillLogin:(NSString*)login password:(NSString*)password; |
| 31 - (void)setExplanation:(NSString*)explanation; | 31 - (void)setExplanation:(NSString*)explanation; |
| 32 @end | 32 @end |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_LOGIN_PROMPT_MAC_H_ | 34 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_MAC_H_ |
| OLD | NEW |