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

Unified Diff: chrome/browser/resources/cr_elements_ui/cr_elements_ui.js

Issue 1138153002: Introduce chrome://cr-elements with Polymer .8 cr-elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/cr_elements_ui/cr_elements_ui.js
diff --git a/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js b/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js
new file mode 100644
index 0000000000000000000000000000000000000000..6f25ed07f489b81f6cdc727c50b013a7c3619a02
--- /dev/null
+++ b/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js
@@ -0,0 +1,44 @@
+// Copyright 2014 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.
+
+/**
+ * @fileoverview Polymer element for UI wrapping a list of cr- elements.
+ */
+(function() {
Jeremy Klein 2015/05/12 06:51:13 no need for the iife.
+
+Polymer({
+ is: 'cr-elements-ui',
+
+ properties: {
+ checkboxChecked: {
+ type: Boolean,
+ value: true,
+ observer: 'checkboxCheckedChanged_'
+ },
+ collapseOpened: {
+ type: Boolean,
+ value: true,
+ observer: 'collapseOpenedChanged_'
+ },
+ inputValue: {
+ type: String,
+ value: '',
+ observer: 'inputValueChanged_'
+ },
+ },
+
+ checkboxCheckedChanged_: function() {
+ console.log('checkboxCheckedChanged=' + this.checkboxChecked);
+ },
+
+ collapseOpenedChanged_: function() {
+ console.log('collapseOpened=' + this.collapseOpened);
+ },
+
+ inputValueChanged_: function() {
+ console.log('inputValue=' + this.inputValue);
+ }
+
michaelpg 2015/05/14 03:05:11 nit: kill blank line
+});
+})();

Powered by Google App Engine
This is Rietveld 408576698