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

Unified Diff: chrome/browser/resources/options/add_startup_page_overlay.js

Issue 3020021: DOMUI prefs: Add and wire up a stub overlay for adding a startup page. (Closed)
Patch Set: Addresses review comments Created 10 years, 5 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/options/add_startup_page_overlay.js
diff --git a/chrome/browser/resources/options/add_startup_page_overlay.js b/chrome/browser/resources/options/add_startup_page_overlay.js
new file mode 100644
index 0000000000000000000000000000000000000000..24f00c3d5344ef5361b8d429d15794bdab80d6b8
--- /dev/null
+++ b/chrome/browser/resources/options/add_startup_page_overlay.js
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 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.
+
+/**
+ * AddStartupPageOverlay class
+ * Encapsulated handling of the 'Add Page' overlay page.
+ * @class
+ */
+function AddStartupPageOverlay() {
+ OptionsPage.call(this, 'addStartupPageOverlay',
+ templateData.addStartupPageTitle,
+ 'addStartupPageOverlay');
+}
+
+cr.addSingletonGetter(AddStartupPageOverlay);
+
+AddStartupPageOverlay.prototype = {
+ __proto__: OptionsPage.prototype,
+
+ /**
+ * Initializes the page.
+ */
+ initializePage: function() {
+ OptionsPage.prototype.initializePage.call(this);
+
+ $('addStartupPageCancelButton').onclick = function(e) {
+ OptionsPage.clearOverlays();
+ };
+ }
+};
« no previous file with comments | « chrome/browser/resources/options/add_startup_page_overlay.html ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698