diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 04:49:51 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 04:49:51 +0000 |
commit | 69446c81f20f77ad9ba91d6b5f24fbdc6a974628 (patch) | |
tree | 02b9f0695e5448b960dc64a9d61246e9ddcd6ecb /chrome/browser/sync/resources | |
parent | b322847533bd5ca4bab75c6f3040997f092bc854 (diff) | |
download | chromium_src-69446c81f20f77ad9ba91d6b5f24fbdc6a974628.zip chromium_src-69446c81f20f77ad9ba91d6b5f24fbdc6a974628.tar.gz chromium_src-69446c81f20f77ad9ba91d6b5f24fbdc6a974628.tar.bz2 |
Revert r50774 as it introduces valgrind failures
TBR=dantasse@chromium.org
TEST=Valgrind bot goes green
BUG=none
Review URL: http://codereview.chromium.org/2827025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/resources')
-rwxr-xr-x | chrome/browser/sync/resources/choose_datatypes.html | 33 | ||||
-rw-r--r-- | chrome/browser/sync/resources/gaia_login.html | 221 | ||||
-rw-r--r-- | chrome/browser/sync/resources/setup_flow.html | 30 |
3 files changed, 126 insertions, 158 deletions
diff --git a/chrome/browser/sync/resources/choose_datatypes.html b/chrome/browser/sync/resources/choose_datatypes.html index 300dfd0..e48675c 100755 --- a/chrome/browser/sync/resources/choose_datatypes.html +++ b/chrome/browser/sync/resources/choose_datatypes.html @@ -102,15 +102,6 @@ input[type='submit'] { document.getElementById("extensionsCheckbox").style.display = "none"; document.getElementById("extensionsCheckboxLabel").style.display = "none"; } - if (args.typedUrlsRegistered) { - document.getElementById("typedUrlsCheckbox").checked = args.syncTypedUrls; - document.getElementById("typedUrlsCheckbox").style.display = "inline"; - document.getElementById("typedUrlsCheckboxLabel").style.display = - "inline"; - } else { - document.getElementById("typedUrlsCheckbox").style.display = "none"; - document.getElementById("typedUrlsCheckboxLabel").style.display = "none"; - } } function setDataTypeCheckboxesEnabled(enabled) { @@ -120,7 +111,6 @@ input[type='submit'] { document.getElementById("passwordsCheckbox").disabled = !enabled; document.getElementById("autofillCheckbox").disabled = !enabled; document.getElementById("extensionsCheckbox").disabled = !enabled; - document.getElementById("typedUrlsCheckbox").disabled = !enabled; } function advanceThrobber() { @@ -153,8 +143,7 @@ input[type='submit'] { "syncThemes": syncAll || f.themesCheckbox.checked, "syncPasswords": syncAll || f.passwordsCheckbox.checked, "syncAutofill": syncAll || f.autofillCheckbox.checked, - "syncExtensions": syncAll || f.extensionsCheckbox.checked, - "syncTypedUrls": syncAll || f.typedUrlsCheckbox.checked + "syncExtensions": syncAll || f.extensionsCheckbox.checked }); chrome.send("ChooseDataTypes", [result]); } @@ -189,8 +178,8 @@ input[type='submit'] { <label id="bookmarksCheckboxLabel" for="bookmarksCheckbox" i18n-content="bookmarks"></label> </td> <td> - <input id="autofillCheckbox" type="checkbox"/> - <label id="autofillCheckboxLabel" for="autofillCheckbox" i18n-content="autofill"></label> + <input id="passwordsCheckbox" type="checkbox"/> + <label id="passwordsCheckboxLabel" for="passwordsCheckbox" i18n-content="passwords"></label> </td> </tr> <tr> @@ -199,8 +188,8 @@ input[type='submit'] { <label id="preferencesCheckboxLabel" for="preferencesCheckbox" i18n-content="preferences"></label> </td> <td> - <input id="extensionsCheckbox" type="checkbox"/> - <label id="extensionsCheckboxLabel" for="extensionsCheckbox" i18n-content="extensions"></label> + <input id="autofillCheckbox" type="checkbox"/> + <label id="autofillCheckboxLabel" for="autofillCheckbox" i18n-content="autofill"></label> </td> </tr> <tr> @@ -209,16 +198,8 @@ input[type='submit'] { <label id="themesCheckboxLabel" for="themesCheckbox" i18n-content="themes"></label> </td> <td> - <input id="typedUrlsCheckbox" type="checkbox"/> - <label id="typedUrlsCheckboxLabel" for="typedUrlsCheckbox" i18n-content="typedurls"></label> - </td> - </tr> - <tr> - <td> - <input id="passwordsCheckbox" type="checkbox"/> - <label id="passwordsCheckboxLabel" for="passwordsCheckbox" i18n-content="passwords"></label> - </td> - <td> + <input id="extensionsCheckbox" type="checkbox"/> + <label id="extensionsCheckboxLabel" for="extensionsCheckbox" i18n-content="extensions"></label> </td> </tr> </table> diff --git a/chrome/browser/sync/resources/gaia_login.html b/chrome/browser/sync/resources/gaia_login.html index a9d8417..7473ef3b 100644 --- a/chrome/browser/sync/resources/gaia_login.html +++ b/chrome/browser/sync/resources/gaia_login.html @@ -1,89 +1,84 @@ <html i18n-values="dir:textdirection;"> -<head> -<style type="text/css"> + <head> +<style type="text/css"><!-- body,td,div,p,a,font,span {font-family: arial,sans-serif;} body { background-color:#ffffff } A:link {color:#0000cc; } A:visited { color:#551a8b; } A:active { color:#ff0000; } .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} - .body { margin-left: 3em; - margin-right: 5em; - font-family: arial,sans-serif; } - .endaligned { - text-align: right; - } - html[dir='rtl'] .endaligned { - text-align: left; - } - #gaia_account_text { font-weight: bold; } - div.errorbox-good {} - div.errorbox-bad {} - div.errormsg { color: red; font-size: smaller; - font-family: arial,sans-serif; - display: none;} - font.errormsg { color: red; font-size: smaller; - font-family: arial,sans-serif;} - div.errormsgspacer { min-height: 1em;} - font.errormsgspacer { font-size: smaller; - font-family: arial,sans-serif;} +--></style> + <style type="text/css"><!-- + .body { margin-left: 3em; + margin-right: 5em; + font-family: arial,sans-serif; } + .endaligned { + text-align: right; + } + html[dir='rtl'] .endaligned { + text-align: left; + } + #gaia_account_text { font-weight: bold; } + div.errorbox-good {} + div.errorbox-bad {} + div.errormsg { color: red; font-size: smaller; + font-family: arial,sans-serif; + display: none;} + font.errormsg { color: red; font-size: smaller; + font-family: arial,sans-serif;} + div.errormsgspacer { min-height: 1em;} + font.errormsgspacer { font-size: smaller; + font-family: arial,sans-serif;} - hr { - border: 0; - background-color:#DDDDDD; - height: 1px; - width: 100%; - text-align: left; - margin: 5px; - } - #gaia_loginform { - margin-bottom: 0; - } + hr { + border: 0; + background-color:#DDDDDD; + height: 1px; + width: 100%; + text-align: left; + margin: 5px; + } + #gaia_loginform { + margin-bottom: 0; + } - #captcha_wrapper { - background-size: 200px 70px; - background: no-repeat; - background-position: center; - background-color: #e8eefa; - display: block; - } - .captcha_image { - display: block; - width: 200px; - height: 70px; - } - .toppageverticalspace { - height: 15px; - } - .bottompaddedcell { - padding-bottom: 3px; - } - .noverticalpadding { - padding-top: 0; - padding-bottom: 0; - } - .cancelspacenocaptcha { - height: 22px; - } - .cancelspaceforcaptcha { - height: 5px; - } - #top_blurb { - text-align: justify; - } - input[type='button'] { - min-width: 87px; - min-height: 26px; - } - input[type='submit'] { - min-width: 87px; - min-height: 26px; - } -</style> -</head> -<body bgcolor="#ffffff" vlink="#666666" - i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize" - style="margin-bottom: 6px; margin-top: 6px;" onload="initGaiaLoginForm();"> + #captcha_wrapper { + background-size: 200px 70px; + background: no-repeat; + background-position: center; + background-color: #e8eefa; + display: block; + } + .captcha_image { + display: block; + width: 200px; + height: 70px; + } + .toppageverticalspace { + height: 15px; + } + .bottompaddedcell { + padding-bottom: 3px; + } + .noverticalpadding { + padding-top: 0; + padding-bottom: 0; + } + .cancelspacenocaptcha { + height: 22px; + } + .cancelspaceforcaptcha { + height: 5px; + } + #top_blurb { + text-align: justify; + } + --> + </style> + </head> + <body bgcolor="#ffffff" vlink="#666666" + i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize" + style="margin-bottom: 6px; margin-top: 6px;" onload="initForm();"> <table width="100%" height="100%" align="center" cellpadding="1" cellspacing="1"> <tr> <td valign="top"> <!-- LOGIN BOX --> @@ -154,6 +149,10 @@ } document.getElementById("signIn").disabled = false; document.getElementById("signIn").value = templateData['signin']; + if (args.showCustomize) { + document.getElementById("customize").disabled = false; + document.getElementById("customize").style.visibility = "visible"; + } gaia_setFocus(); } @@ -182,9 +181,14 @@ } function CloseDialog() { + chrome.send("ClickCustomizeCancel", [""]); chrome.send("DialogClose", [""]); } + function showCustomize() { + chrome.send("ShowCustomize", [""]); + } + function showGaiaSuccessAndClose() { document.getElementById("signIn").value = templateData['success']; setTimeout(CloseDialog, 1600); @@ -194,8 +198,7 @@ document.getElementById("signIn").value = templateData['settingup']; } - // Called once, when this html/js is loaded. - function initGaiaLoginForm() { + function initForm() { var acct_text = document.getElementById("gaia_account_text"); var translated_text = acct_text.textContent; var posGoogle = translated_text.indexOf('Google'); @@ -217,13 +220,16 @@ function sendCredentialsAndClose() { + chrome.send("ClickCustomizeOk", [""]); if (!setErrorVisibility()) return false; document.getElementById('Email').disabled = true; document.getElementById('Passwd').disabled = true; document.getElementById('CaptchaValue').disabled = true; - + if (document.getElementById('customize')) { + document.getElementById('customize').disabled = true; + } var throbber = document.getElementById('throbber_container'); throbber.style.display = "inline"; var f = document.getElementById("gaia_loginform"); @@ -272,30 +278,30 @@ return true; } </script> - <style type="text/css"> - div.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif; } - font.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif;} - </style> - <style type="text/css"> - .gaia.le.lbl { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } - .gaia.le.fpwd { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } - .gaia.le.chusr { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } - .gaia.le.val { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } - .gaia.le.button { font-family: Arial, Helvetica, sans-serif; } - .gaia.le.rem { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } - .gaia.captchahtml.desc { font-family: arial, sans-serif; font-size: smaller; } - .gaia.captchahtml.cmt { font-family: arial, sans-serif; font-size: smaller; - font-style: italic; } - </style> - <div id="top_blurb"> - <p><font size="-1"><span i18n-content="introduction"></span></font></p> - </div> - <div id="top_blurb_error" style="display:none"> - <p><font size="-1"> - <span i18n-content="settingupsync"></span><br/><br/> - <b><span i18n-content="errorsigningin"></span></b> - </font></p> - </div> +<style type="text/css"><!-- + div.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif; } + font.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif;} +--></style> +<style type="text/css"><!-- +.gaia.le.lbl { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } +.gaia.le.fpwd { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } +.gaia.le.chusr { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } +.gaia.le.val { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } +.gaia.le.button { font-family: Arial, Helvetica, sans-serif; } +.gaia.le.rem { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } +.gaia.captchahtml.desc { font-family: arial, sans-serif; font-size: smaller; } +.gaia.captchahtml.cmt { font-family: arial, sans-serif; font-size: smaller; + font-style: italic; } +--></style> +<div id="top_blurb"> + <p><font size="-1"><span i18n-content="introduction"></span></font></p> +</div> +<div id="top_blurb_error" style="display:none"> + <p><font size="-1"> + <span i18n-content="settingupsync"></span><br/><br/> + <b><span i18n-content="errorsigningin"></span></b> + </font></p> +</div> <form id="gaia_loginform" onsubmit="sendCredentialsAndClose(); return false;"> <div id="gaia_loginbox"> <table id="content_table" class="form-noindent" cellspacing="0" cellpadding="5" @@ -325,7 +331,7 @@ </table> </td> </tr> - <script type="text/javascript"> + <script type="text/javascript"><!-- function onPreCreateAccount() { return true; } @@ -336,7 +342,7 @@ return true; } } - </script> + --></script> <tr> <td colspan="2" align="center"> </td> </tr> @@ -485,6 +491,9 @@ </tr> <tr> <td class="endaligned noverticalpadding" colspan="2" style="vertical-align: bottom"> + <input id="customize" type="button" name="customize" + i18n-values="value:customize" onclick="showCustomize();" + style="visibility:hidden" disabled="disabled"> <input type="button" name="cancel" i18n-values="value:cancel" onclick="CloseDialog();" style="width:85"> </td> diff --git a/chrome/browser/sync/resources/setup_flow.html b/chrome/browser/sync/resources/setup_flow.html index 4b1dede..258e2cf 100644 --- a/chrome/browser/sync/resources/setup_flow.html +++ b/chrome/browser/sync/resources/setup_flow.html @@ -1,38 +1,16 @@ <html id='t'> <head> <title></title> -<script type="text/javascript"> - - // Called once, when this html/js is loaded. - function showTheRightIframe() { - hideAllPages(); - var args = JSON.parse(chrome.dialogArguments); - document.getElementById(args.iframeToShow).style.display = 'block'; - } - - function hideAllPages() { - document.getElementById('login').style.display = 'none'; - document.getElementById('choose_data_types').style.display = 'none'; - document.getElementById('done').style.display = 'none'; - } - - function showChooseDataTypes() { - hideAllPages(); - document.getElementById('choose_data_types').style.display = 'block'; - } - +<script> function showSetupDone() { - hideAllPages(); + document.getElementById('login').style.display = 'none'; document.getElementById('done').style.display = 'block'; } </script> </head> -<body style="margin:0; border:0;" onload="showTheRightIframe();"> +<body style="margin:0; border:0;"> <iframe id="login" frameborder="0" width="100%" scrolling="no" height="100%" - src="chrome://syncresources/gaialogin" style="display:none"></iframe> - <iframe id="choose_data_types" frameborder="0" width="100%" scrolling="no" - height="100%" src="chrome://syncresources/choosedatatypes" - style="display:none"></iframe> + src="chrome://syncresources/gaialogin"></iframe> <iframe id="done" frameborder="0" width="100%" scrolling="no" height="100%" src="chrome://syncresources/setupdone" style="display:none"></iframe> </body> |