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

Unified Diff: chrome/browser/resources/md_flags/flags_table.js

Issue 1223793018: Fake MD Flags sample WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, update to GYP v2 Created 4 years, 10 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/resources/md_flags/flags_table.html ('k') | chrome/browser/resources/md_flags/md_flags.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_flags/flags_table.js
diff --git a/chrome/browser/resources/md_flags/flags_table.js b/chrome/browser/resources/md_flags/flags_table.js
new file mode 100644
index 0000000000000000000000000000000000000000..c944cce4ac730278d4ae7fd7da8441d04682a316
--- /dev/null
+++ b/chrome/browser/resources/md_flags/flags_table.js
@@ -0,0 +1,35 @@
+// Copyright 2016 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 'flags-table' displays the list of flags.
+ */
+Polymer({
+ is: 'flags-table',
+
+ properties: {
+ /**
+ * The set of flags.
+ * @type !Array<!Flag>
+ */
+ flags: {
+ type: Array,
+ value: function() { return []; },
+ },
+ },
+
+ observers: [
+ 'flagsChanged_(flags.*)',
+ ],
+
+ /**
+ * @param {!{path: string, value: string}} e
+ * @private
+ */
+ flagsChanged_: function(e) {
+ var index = e.path.match(/\d+/);
+ if (index)
+ console.log('Flag ' + index[0] + ' set to ' + e.value);
+ },
+});
« no previous file with comments | « chrome/browser/resources/md_flags/flags_table.html ('k') | chrome/browser/resources/md_flags/md_flags.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698