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

Unified Diff: chrome/browser/resources/settings/a11y_page/demo.js

Issue 985533002: Set up serving infrastructure for c/b/r/settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wait for onload. Created 5 years, 9 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
Index: chrome/browser/resources/settings/a11y_page/demo.js
diff --git a/chrome/browser/resources/settings/a11y_page/demo.js b/chrome/browser/resources/settings/a11y_page/demo.js
new file mode 100644
index 0000000000000000000000000000000000000000..5ce72c5c34dafe185b95070e9d3aa5ed535a5901
--- /dev/null
+++ b/chrome/browser/resources/settings/a11y_page/demo.js
@@ -0,0 +1,11 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * Wire up the prefs to the a11y page.
+ */
+window.onload = function() {
michaelpg 2015/03/06 20:25:59 I believe it's more "correct" to use window.addEve
Jeremy Klein 2015/03/06 21:33:56 This isn't really necessary in this case because t
michaelpg 2015/03/06 22:33:49 Data binding seems to work, but apparently it's no
+ var page = document.querySelector('cr-settings-a11y-page');
+ page.prefs = document.querySelector('cr-settings-prefs');
+};
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/demo.html ('k') | chrome/browser/resources/settings/settings_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698