Index: chrome/browser/resources/md_flags/flag.js |
diff --git a/chrome/browser/resources/md_flags/flag.js b/chrome/browser/resources/md_flags/flag.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a324125c3cc1320cd2ed9aac7089b6a11946f3c6 |
--- /dev/null |
+++ b/chrome/browser/resources/md_flags/flag.js |
@@ -0,0 +1,36 @@ |
+// 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-flag' displays information about a flag and provides |
+ * a toggle switch to enable or disable the flag. |
+ */ |
+Polymer({ |
+ is: 'flags-flag', |
+ |
+ properties: { |
+ /** The flag ID. */ |
+ flagId: String, |
+ |
+ /** The flag display name. */ |
+ displayName: String, |
+ |
+ /** The flag description. */ |
+ description: String, |
+ |
+ /** |
+ * Whether the flag is enabled. |
+ */ |
+ enabled: { |
+ type: Boolean, |
+ value: false, |
+ notify: true, |
+ }, |
+ }, |
+ |
+ /** @private */ |
+ getTitleClass_: function(enabled) { |
+ return enabled ? 'on' : 'off'; |
+ }, |
+}); |