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

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

Issue 7757006: Allow no arguments in ConstrainedHtmlUI::OnDialogClose() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | 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 <!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 <style type="text/css">
5 body { 5 body {
6 margin: 10px 10px 0 10px; 6 margin: 10px 10px 0 10px;
7 -webkit-user-select: none; 7 -webkit-user-select: none;
8 } 8 }
9 9
10 form { 10 form {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 var result = JSON.stringify({ 55 var result = JSON.stringify({
56 'username': $('username').value, 56 'username': $('username').value,
57 'password': $('password').value}); 57 'password': $('password').value});
58 58
59 chrome.send('DialogClose', [result]); 59 chrome.send('DialogClose', [result]);
60 } 60 }
61 61
62 function cancel() { 62 function cancel() {
63 disableControls(); 63 disableControls();
64 chrome.send('DialogClose'); 64 chrome.send('DialogClose', ['']);
arv (Not doing code reviews) 2011/09/07 20:41:21 This seems like the wrong way to fix this. Passing
rhashimoto 2011/09/08 23:30:31 Done.
65 } 65 }
66 66
67 function handleSubmit(e) { 67 function handleSubmit(e) {
68 sendCredentialsAndClose(); 68 sendCredentialsAndClose();
69 e.preventDefault(); 69 e.preventDefault();
70 } 70 }
71 71
72 function handleKeyDown(e) { 72 function handleKeyDown(e) {
73 if (e.keyCode == 27) { // Escape 73 if (e.keyCode == 27) { // Escape
74 cancel(); 74 cancel();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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="button" 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698