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

Unified Diff: chrome/browser/resources/settings/settings_dialog.js

Issue 1758973002: MD Settings: Creating a <settings-dialog> element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. 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/settings/settings_dialog.js
diff --git a/chrome/browser/resources/settings/settings_dialog.js b/chrome/browser/resources/settings/settings_dialog.js
new file mode 100644
index 0000000000000000000000000000000000000000..59fcc41bf2583c35a80b958264519b1320c33821
--- /dev/null
+++ b/chrome/browser/resources/settings/settings_dialog.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.
+
+/**
+ * @fileoverview 'settings-dialog' is a component for showing a modal dialog.
+ *
+ * @group Chrome Settings Elements
+ * @element settings-dialog
+ */
+Polymer({
+ is: 'settings-dialog',
+
+ open: function() {
+ this.$.dialog.open();
+ },
+
+ close: function() {
+ this.$.dialog.close();
+ },
+
+ center: function() {
+ this.$.dialog.center();
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698