| 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);
|
| + },
|
| +});
|
|
|