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

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

Issue 2811573004: MD Settings: Restore focus when exiting various subpages, part 2. (Closed)
Patch Set: Device page Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 'settings-about-page' contains version and OS related 6 * @fileoverview 'settings-about-page' contains version and OS related
7 * information. 7 * information.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-about-page', 10 is: 'settings-about-page',
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 type: Boolean, 66 type: Boolean,
67 computed: 'computeShowRelaunchAndPowerwash_(' + 67 computed: 'computeShowRelaunchAndPowerwash_(' +
68 'currentUpdateStatusEvent_, targetChannel_)', 68 'currentUpdateStatusEvent_, targetChannel_)',
69 }, 69 },
70 70
71 /** @private */ 71 /** @private */
72 showCheckUpdates_: { 72 showCheckUpdates_: {
73 type: Boolean, 73 type: Boolean,
74 computed: 'computeShowCheckUpdates_(currentUpdateStatusEvent_)', 74 computed: 'computeShowCheckUpdates_(currentUpdateStatusEvent_)',
75 }, 75 },
76
77 /** @private {!Map<string, string>} */
78 focusConfig_: {
79 type: Object,
80 value: function() {
81 var map = new Map();
82 map.set(
83 settings.Route.DETAILED_BUILD_INFO.path,
84 '#detailed-build-info-trigger');
85 return map;
86 },
87 }
76 // </if> 88 // </if>
77 }, 89 },
78 90
79 observers: [ 91 observers: [
80 // <if expr="not chromeos"> 92 // <if expr="not chromeos">
81 'updateShowUpdateStatus_(' + 93 'updateShowUpdateStatus_(' +
82 'obsoleteSystemInfo_, currentUpdateStatusEvent_)', 94 'obsoleteSystemInfo_, currentUpdateStatusEvent_)',
83 'updateShowRelaunch_(currentUpdateStatusEvent_)', 95 'updateShowRelaunch_(currentUpdateStatusEvent_)',
84 'updateShowButtonContainer_(showRelaunch_)', 96 'updateShowButtonContainer_(showRelaunch_)',
85 // </if> 97 // </if>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 }); 421 });
410 }, 422 },
411 423
412 // <if expr="_google_chrome"> 424 // <if expr="_google_chrome">
413 /** @private */ 425 /** @private */
414 onReportIssueTap_: function() { 426 onReportIssueTap_: function() {
415 this.aboutBrowserProxy_.openFeedbackDialog(); 427 this.aboutBrowserProxy_.openFeedbackDialog();
416 }, 428 },
417 // </if> 429 // </if>
418 }); 430 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698