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

Side by Side Diff: chrome/browser/resources/http_auth.html

Issue 7828065: chromeos: Add WebUI implementation of form repost dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge. again. Created 9 years, 3 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/dialog.css ('k') | chrome/browser/resources/repost_form_warning.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html i18n-values="dir:textdirection"> 2 <html i18n-values="dir:textdirection">
3 <head> 3 <head>
4 <style type="text/css"> 4 <link rel="stylesheet" href="dialog.css">
5 <style>
5 body { 6 body {
6 margin: 10px 10px 0 10px; 7 margin: 10px 10px 0 10px;
7 -webkit-user-select: none; 8 -webkit-user-select: none;
8 } 9 }
9 10
10 form { 11 form {
11 margin: 0; 12 margin: 0;
12 } 13 }
13 14
14 #explanation { 15 #explanation {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 function setAutofillCredentials(username, password) { 80 function setAutofillCredentials(username, password) {
80 $('username').value = username; 81 $('username').value = username;
81 $('password').value = password; 82 $('password').value = password;
82 } 83 }
83 84
84 function load() { 85 function load() {
85 document.addEventListener('keydown', handleKeyDown); 86 document.addEventListener('keydown', handleKeyDown);
86 $('explanation').textContent = chrome.dialogArguments; 87 $('explanation').textContent = chrome.dialogArguments;
87 $('form').onsubmit = handleSubmit; 88 $('form').onsubmit = handleSubmit;
88 $('cancel').onclick = cancel; 89 $('cancel').onclick = cancel;
89 $('username').focus();
90 90
91 chrome.send('GetAutofill', ['']); 91 chrome.send('GetAutofill', ['']);
92 } 92 }
93 93
94 document.addEventListener('DOMContentLoaded', load); 94 document.addEventListener('DOMContentLoaded', load);
95 </script> 95 </script>
96 </head> 96 </head>
97 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 97 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
98 <div id="explanation"></div> 98 <div id="explanation"></div>
99 <form id="form"> 99 <form id="form">
100 <table id="fields"> 100 <table id="fields">
101 <tr> 101 <tr>
102 <td id="username-label-cell"> 102 <td id="username-label-cell">
103 <label for="username" i18n-content="username"></label> 103 <label for="username" i18n-content="username"></label>
104 </td> 104 </td>
105 <td> 105 <td>
106 <input id="username" type="text"> 106 <input id="username" type="text" autofocus>
107 </td> 107 </td>
108 </tr> 108 </tr>
109 <tr> 109 <tr>
110 <td id="password-label-cell"> 110 <td id="password-label-cell">
111 <label for="password" i18n-content="password"></label> 111 <label for="password" i18n-content="password"></label>
112 </td> 112 </td>
113 <td> 113 <td>
114 <input id="password" name="password" type="password"> 114 <input id="password" name="password" type="password">
115 </td> 115 </td>
116 </tr> 116 </tr>
117 </table> 117 </table>
118 <div id="buttons"> 118 <div id="buttons">
119 <input id="cancel" type="button" i18n-values="value:cancel"> 119 <input id="cancel" type="reset" i18n-values="value:cancel">
120 <input id="login" type="submit" i18n-values="value:signin"> 120 <input id="login" type="submit" i18n-values="value:signin">
121 </div> 121 </div>
122 </form> 122 </form>
123 </body> 123 </body>
124 </html> 124 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/dialog.css ('k') | chrome/browser/resources/repost_form_warning.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698