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

Side by Side Diff: chrome/browser/ui/login/login_prompt_ui.cc

Issue 7709013: chromeos: Make WebUI auth dialog handle Enter and Escape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert changes from r97651 Created 9 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/http_auth.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 TabContents *tab_contents_; 143 TabContents *tab_contents_;
144 std::string explanation_; 144 std::string explanation_;
145 bool closed_; 145 bool closed_;
146 146
147 bool has_autofill_; 147 bool has_autofill_;
148 bool ready_for_autofill_; 148 bool ready_for_autofill_;
149 std::string autofill_username_; 149 std::string autofill_username_;
150 std::string autofill_password_; 150 std::string autofill_password_;
151 151
152 static const int kDialogWidth = 400; 152 static const int kDialogWidth = 400;
153 static const int kDialogHeight = 130; 153 static const int kDialogHeight = 160;
154 154
155 DISALLOW_COPY_AND_ASSIGN(LoginHandlerHtmlDelegate); 155 DISALLOW_COPY_AND_ASSIGN(LoginHandlerHtmlDelegate);
156 }; 156 };
157 157
158 class LoginHandlerHtml : public LoginHandler { 158 class LoginHandlerHtml : public LoginHandler {
159 public: 159 public:
160 LoginHandlerHtml(net::AuthChallengeInfo* auth_info, net::URLRequest* request) 160 LoginHandlerHtml(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
161 : LoginHandler(auth_info, request), 161 : LoginHandler(auth_info, request),
162 delegate_(NULL) { 162 delegate_(NULL) {
163 } 163 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 SetDialog(dialog); 250 SetDialog(dialog);
251 251
252 NotifyAuthNeeded(); 252 NotifyAuthNeeded();
253 } 253 }
254 254
255 // static 255 // static
256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 256 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
257 net::URLRequest* request) { 257 net::URLRequest* request) {
258 return new LoginHandlerHtml(auth_info, request); 258 return new LoginHandlerHtml(auth_info, request);
259 } 259 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/http_auth.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698