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

Side by Side Diff: chrome/browser/resources/md_flags/flag.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview 'flags-flag' displays information about a flag and provides
7 * a toggle switch to enable or disable the flag.
8 */
9 Polymer({
10 is: 'flags-flag',
11
12 properties: {
13 /** The flag ID. */
14 flagId: String,
15
16 /** The flag display name. */
17 displayName: String,
18
19 /** The flag description. */
20 description: String,
21
22 /**
23 * Whether the flag is enabled.
24 */
25 enabled: {
26 type: Boolean,
27 value: false,
28 notify: true,
29 },
30 },
31
32 /** @private */
33 getTitleClass_: function(enabled) {
34 return enabled ? 'on' : 'off';
35 },
36 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_flags/flag.html ('k') | chrome/browser/resources/md_flags/flags_table.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698