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

Side by Side Diff: chrome/browser/resources/options/reset_profile_settings_banner.js

Issue 604373006: Compile chrome://settings, part 9: yet another final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@K_blockers_from_bookmarks
Patch Set: describe supressions Created 6 years, 2 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Note: the native-side handler for this is ResetProfileSettingsHandler. 5 // Note: the native-side handler for this is ResetProfileSettingsHandler.
6 6
7 cr.define('options', function() { 7 cr.define('options', function() {
8 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 8 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
9 /** @const */ var SettingsBannerBase = options.SettingsBannerBase; 9 /** @const */ var SettingsBannerBase = options.SettingsBannerBase;
10 10
11 /** 11 /**
12 * ResetProfileSettingsBanner class 12 * ResetProfileSettingsBanner class
13 * Provides encapsulated handling of the Reset Profile Settings banner. 13 * Provides encapsulated handling of the Reset Profile Settings banner.
14 * @constructor 14 * @constructor
15 * @extends {options.SettingsBannerBase}
15 */ 16 */
16 function ResetProfileSettingsBanner() {} 17 function ResetProfileSettingsBanner() {}
17 18
18 cr.addSingletonGetter(ResetProfileSettingsBanner); 19 cr.addSingletonGetter(ResetProfileSettingsBanner);
19 20
20 ResetProfileSettingsBanner.prototype = { 21 ResetProfileSettingsBanner.prototype = {
21 __proto__: SettingsBannerBase.prototype, 22 __proto__: SettingsBannerBase.prototype,
22 23
23 /** 24 /**
24 * Initializes the banner's event handlers. 25 * Initializes the banner's event handlers.
26 * @suppress {checkTypes}
27 * TODO(vitalyp): remove the suppression. See the explanation in
28 * chrome/browser/resources/options/automatic_settings_reset_banner.js.
25 */ 29 */
26 initialize: function() { 30 initialize: function() {
27 this.showMetricName = 'AutomaticReset_WebUIBanner_BannerShown'; 31 this.showMetricName = 'AutomaticReset_WebUIBanner_BannerShown';
28 32
29 this.dismissNativeCallbackName = 33 this.dismissNativeCallbackName =
30 'onDismissedResetProfileSettingsBanner'; 34 'onDismissedResetProfileSettingsBanner';
31 35
32 this.visibilityDomElement = $('reset-profile-settings-banner'); 36 this.visibilityDomElement = $('reset-profile-settings-banner');
33 37
34 $('reset-profile-settings-banner-close').onclick = function(event) { 38 $('reset-profile-settings-banner-close').onclick = function(event) {
(...skipping 18 matching lines...) Expand all
53 var instance = ResetProfileSettingsBanner.getInstance(); 57 var instance = ResetProfileSettingsBanner.getInstance();
54 return instance[name].apply(instance, arguments); 58 return instance[name].apply(instance, arguments);
55 }; 59 };
56 }); 60 });
57 61
58 // Export 62 // Export
59 return { 63 return {
60 ResetProfileSettingsBanner: ResetProfileSettingsBanner 64 ResetProfileSettingsBanner: ResetProfileSettingsBanner
61 }; 65 };
62 }); 66 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/preferences.js ('k') | chrome/browser/resources/options/reset_profile_settings_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698