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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 * AddStartupPageOverlay class
7 * Encapsulated handling of the 'Add Page' overlay page.
8 * @class
9 */
10 function AddStartupPageOverlay() {
11 OptionsPage.call(this, 'addStartupPageOverlay',
12 templateData.addStartupPageTitle,
13 'addStartupPageOverlay');
14 }
15
16 cr.addSingletonGetter(AddStartupPageOverlay);
17
18 AddStartupPageOverlay.prototype = {
19 __proto__: OptionsPage.prototype,
20
21 /**
22 * Initializes the page.
23 */
24 initializePage: function() {
25 OptionsPage.prototype.initializePage.call(this);
26
27 $('addStartupPageCancelButton').onclick = function(e) {
28 OptionsPage.clearOverlays();
29 };
30 }
31 };
OLDNEW
« 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