Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/ui/cocoa/login_prompt_cocoa.h

Issue 1466473003: Do not show untrustworthy strings in the basic auth dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix XIB. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_UI_COCOA_LOGIN_PROMPT_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_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 IBOutlet NSTextField* authorityField_;
18 IBOutlet NSTextField* explanationField_; 19 IBOutlet NSTextField* explanationField_;
19 IBOutlet NSButton* loginButton_; 20 IBOutlet NSButton* loginButton_;
20 IBOutlet NSButton* cancelButton_; 21 IBOutlet NSButton* cancelButton_;
21 LoginHandlerMac* handler_; // weak, owns us 22 LoginHandlerMac* handler_; // weak, owns us
22 } 23 }
23 - (id)initWithLoginHandler:(LoginHandlerMac*)handler; 24 - (id)initWithLoginHandler:(LoginHandlerMac*)handler;
24 - (IBAction)loginPressed:(id)sender; 25 - (IBAction)loginPressed:(id)sender;
25 - (IBAction)cancelPressed:(id)sender; 26 - (IBAction)cancelPressed:(id)sender;
26 - (void)autofillLogin:(NSString*)login password:(NSString*)password; 27 - (void)autofillLogin:(NSString*)login password:(NSString*)password;
28 - (void)setAuthority:(NSString*)authority;
27 - (void)setExplanation:(NSString*)explanation; 29 - (void)setExplanation:(NSString*)explanation;
28 @end 30 @end
29 31
30 #endif // CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_ 32 #endif // CHROME_BROWSER_UI_COCOA_LOGIN_PROMPT_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/login_prompt_android.cc ('k') | chrome/browser/ui/cocoa/login_prompt_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698