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

Unified Diff: chrome/browser/resources/host_registration_page.html

Issue 3044001: Register getUserInfo message callback for register screen. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: - test changes Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/register_page_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/host_registration_page.html
diff --git a/chrome/browser/resources/host_registration_page.html b/chrome/browser/resources/host_registration_page.html
index a6cf0b280a85ccb252195d934b214512beab74d3..101e812bd92bc4eddae52af3e76b3a0acd5d7fce 100644
--- a/chrome/browser/resources/host_registration_page.html
+++ b/chrome/browser/resources/host_registration_page.html
@@ -3,6 +3,32 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Register your computer with Google</title>
+<script>
+
+document.addEventListener('DOMContentLoaded', load);
+
+function load() {
+ chrome.send('getRegistrationUrl', []);
+}
+
+function $(o) {
+ return document.getElementById(o);
+}
+
+function setRegistrationUrl(url) {
+ // TODO(nkostylev): Load URL in iframe.
+}
+
+// Called when document has been loaded in an iframe.
+function onFormLoaded() {
+ chrome.send('getUserInfo', []);
+}
+
+function setUserInfo(data) {
+ // TODO(nkostylev): Pass system/user data to registration iframe.
+}
+
+</script>
</head>
<body>
<!-- TODO(nkostylev): Redirect to cros://register/[success|skipped]. -->
« no previous file with comments | « chrome/browser/dom_ui/register_page_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698