cros: Remove default pinned apps trial.
[chromium-blink-merge.git] / chrome / browser / resources / tab_modal_confirm_dialog.html
blob97fe0975a856e1a530c87f80bca982ea1d9bab2f
1 <!DOCTYPE html>
2 <html i18n-values="dir:textdirection">
3 <head>
4 <link rel="stylesheet" href="dialog.css">
5 <style>
6 body {
7 -webkit-user-select: none;
8 margin: 10px 10px 0 10px;
11 form {
12 margin: 0;
15 #explanation {
16 cursor: default;
19 #buttons {
20 padding: 10px 0;
21 text-align: end;
24 </style>
25 <script src="chrome://resources/js/i18n_template.js"></script>
26 <script>
27 function $(o) {
28 return document.getElementById(o);
31 function disableControls() {
32 $('cancel').disabled = true;
33 $('accept').disabled = true;
36 function cancel() {
37 disableControls();
38 chrome.send('DialogClose', [JSON.stringify(false)]);
41 function handleSubmit(e) {
42 disableControls();
43 e.preventDefault();
44 chrome.send('DialogClose', [JSON.stringify(true)]);
47 function handleKeyDown(e) {
48 if (e.keyCode == 27) { // Escape
49 e.preventDefault();
50 cancel();
54 function load() {
55 i18nTemplate.process(document, JSON.parse(
56 chrome.getVariableValue('dialogArguments')));
57 document.addEventListener('keydown', handleKeyDown);
58 $('form').onsubmit = handleSubmit;
59 $('cancel').onclick = cancel;
60 $('cancel').focus();
63 document.addEventListener('DOMContentLoaded', load);
64 </script>
65 </head>
66 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
67 <div id="explanation" i18n-content="message"></div>
68 <form id="form">
69 <div id="buttons">
70 <input id="cancel" type="reset" i18n-values="value:cancel" autofocus>
71 <input id="accept" type="submit" i18n-values="value:accept">
72 </div>
73 </form>
74 </body>
75 </html>