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

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

Issue 10873038: Replacing WebUIBindings use of CPPBoundClass with v8::Extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Using typeof == "function" Created 8 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
« no previous file with comments | « chrome/browser/resources/shared/js/cr.js ('k') | chrome/browser/sync/resources/gaia_login.js » ('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 <link rel="stylesheet" href="dialog.css"> 4 <link rel="stylesheet" href="dialog.css">
5 <style> 5 <style>
6 body { 6 body {
7 -webkit-user-select: none; 7 -webkit-user-select: none;
8 margin: 10px 10px 0 10px; 8 margin: 10px 10px 0 10px;
9 } 9 }
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 function handleKeyDown(e) { 47 function handleKeyDown(e) {
48 if (e.keyCode == 27) { // Escape 48 if (e.keyCode == 27) { // Escape
49 e.preventDefault(); 49 e.preventDefault();
50 cancel(); 50 cancel();
51 } 51 }
52 } 52 }
53 53
54 function load() { 54 function load() {
55 i18nTemplate.process(document, JSON.parse(chrome.dialogArguments)); 55 i18nTemplate.process(document, JSON.parse(
56 chrome.getVariableValue('dialogArguments')));
56 document.addEventListener('keydown', handleKeyDown); 57 document.addEventListener('keydown', handleKeyDown);
57 $('form').onsubmit = handleSubmit; 58 $('form').onsubmit = handleSubmit;
58 $('cancel').onclick = cancel; 59 $('cancel').onclick = cancel;
59 $('cancel').focus(); 60 $('cancel').focus();
60 } 61 }
61 62
62 document.addEventListener('DOMContentLoaded', load); 63 document.addEventListener('DOMContentLoaded', load);
63 </script> 64 </script>
64 </head> 65 </head>
65 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 66 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
66 <div id="explanation" i18n-content="message"></div> 67 <div id="explanation" i18n-content="message"></div>
67 <form id="form"> 68 <form id="form">
68 <div id="buttons"> 69 <div id="buttons">
69 <input id="cancel" type="reset" i18n-values="value:cancel" autofocus> 70 <input id="cancel" type="reset" i18n-values="value:cancel" autofocus>
70 <input id="accept" type="submit" i18n-values="value:accept"> 71 <input id="accept" type="submit" i18n-values="value:accept">
71 </div> 72 </div>
72 </form> 73 </form>
73 </body> 74 </body>
74 </html> 75 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared/js/cr.js ('k') | chrome/browser/sync/resources/gaia_login.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698