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

Unified Diff: chrome/browser/resources/md_flags/md_flags.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
Index: chrome/browser/resources/md_flags/md_flags.js
diff --git a/chrome/browser/resources/md_flags/md_flags.js b/chrome/browser/resources/md_flags/md_flags.js
new file mode 100644
index 0000000000000000000000000000000000000000..d24b78fab8865d6143b0ae5f15a2fa416af73b56
--- /dev/null
+++ b/chrome/browser/resources/md_flags/md_flags.js
@@ -0,0 +1,25 @@
+/* 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.
+ */
+
+/** @typedef {{id: string}} */
+var Flag;
+
+cr.define('md_flags', function() {
+ function initialize() {
+ chrome.send('requestFlags');
+ }
+
+ /** @param {!Array<!Flag>} flags */
+ function setFlags(flags) {
+ $('flags-table').flags = flags;
+ };
+
+ return {
+ initialize: initialize,
+ setFlags: setFlags
+ };
+});
+
+md_flags.initialize();
« no previous file with comments | « chrome/browser/resources/md_flags/md_flags.html ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698