| 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();
|
| + };
|
| + }
|
| +};
|
|
|