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

Side by Side Diff: chrome/browser/resources/settings/advanced_page/advanced_page.js

Issue 1814703004: MD Settings: implement "RESTART" button for hardware acceleration to take effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: friend Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-advanced-page' is the settings page containing the advanced 7 * 'settings-advanced-page' is the settings page containing the advanced
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 26 matching lines...) Expand all
37 notify: true, 37 notify: true,
38 }, 38 },
39 }, 39 },
40 40
41 /** 41 /**
42 * @type {string} Selector to get the sections. 42 * @type {string} Selector to get the sections.
43 * TODO(michaelpg): replace duplicate docs with @override once b/24294625 43 * TODO(michaelpg): replace duplicate docs with @override once b/24294625
44 * is fixed. 44 * is fixed.
45 */ 45 */
46 sectionSelector: 'settings-section', 46 sectionSelector: 'settings-section',
47
48 <if expr="not chromeos">
49 listeners: {
50 'dom-change': 'onDomChange_',
51 },
52 </if>
53
54 /** @override */
55 attached: function() {
56 /** @override */
57 this.scroller = this.parentElement;
michaelpg 2016/03/22 00:59:59 noooooooooooooooooooooooo
Dan Beam 2016/03/22 02:17:00 Doooooooooooooooooooooooone.
58 },
59
60 <if expr="not chromeos">
61 /** @private */
62 onDomChange_: function() {
63 var systemPage = /** @type {?SettingsSystemPageElement} */(
64 this.$$('settings-system-page'));
65 if (systemPage && !systemPage.delegate)
66 systemPage.delegate = new settings.SystemPageDelegateImpl;
67 },
68 </if>
69 }); 47 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698