| OLD | NEW |
| 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 A helper object used from the "About" section to interact with | 6 * @fileoverview A helper object used from the "About" section to interact with |
| 7 * the browser. | 7 * the browser. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 <if expr="chromeos"> | 10 <if expr="chromeos"> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 * Indicates to the browser that the page is ready. | 101 * Indicates to the browser that the page is ready. |
| 102 */ | 102 */ |
| 103 pageReady: function() {}, | 103 pageReady: function() {}, |
| 104 | 104 |
| 105 /** | 105 /** |
| 106 * Request update status from the browser. It results in one or more | 106 * Request update status from the browser. It results in one or more |
| 107 * 'update-status-changed' WebUI events. | 107 * 'update-status-changed' WebUI events. |
| 108 */ | 108 */ |
| 109 refreshUpdateStatus: function() {}, | 109 refreshUpdateStatus: function() {}, |
| 110 | 110 |
| 111 /** | |
| 112 * Relaunches the browser. | |
| 113 */ | |
| 114 relaunchNow: function() {}, | |
| 115 | |
| 116 /** Opens the help page. */ | 111 /** Opens the help page. */ |
| 117 openHelpPage: function() {}, | 112 openHelpPage: function() {}, |
| 118 | 113 |
| 119 <if expr="_google_chrome"> | 114 <if expr="_google_chrome"> |
| 120 /** | 115 /** |
| 121 * Opens the feedback dialog. | 116 * Opens the feedback dialog. |
| 122 */ | 117 */ |
| 123 openFeedbackDialog: function() {}, | 118 openFeedbackDialog: function() {}, |
| 124 </if> | 119 </if> |
| 125 | 120 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 pageReady: function() { | 156 pageReady: function() { |
| 162 chrome.send('aboutPageReady'); | 157 chrome.send('aboutPageReady'); |
| 163 }, | 158 }, |
| 164 | 159 |
| 165 /** @override */ | 160 /** @override */ |
| 166 refreshUpdateStatus: function() { | 161 refreshUpdateStatus: function() { |
| 167 chrome.send('refreshUpdateStatus'); | 162 chrome.send('refreshUpdateStatus'); |
| 168 }, | 163 }, |
| 169 | 164 |
| 170 /** @override */ | 165 /** @override */ |
| 171 relaunchNow: function() { | |
| 172 chrome.send('relaunchNow'); | |
| 173 }, | |
| 174 | |
| 175 /** @override */ | |
| 176 openHelpPage: function() { | 166 openHelpPage: function() { |
| 177 chrome.send('openHelpPage'); | 167 chrome.send('openHelpPage'); |
| 178 }, | 168 }, |
| 179 | 169 |
| 180 <if expr="_google_chrome"> | 170 <if expr="_google_chrome"> |
| 181 /** @override */ | 171 /** @override */ |
| 182 openFeedbackDialog: function() { | 172 openFeedbackDialog: function() { |
| 183 chrome.send('openFeedbackDialog'); | 173 chrome.send('openFeedbackDialog'); |
| 184 }, | 174 }, |
| 185 </if> | 175 </if> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 </if> | 207 </if> |
| 218 }; | 208 }; |
| 219 | 209 |
| 220 return { | 210 return { |
| 221 AboutPageBrowserProxy: AboutPageBrowserProxy, | 211 AboutPageBrowserProxy: AboutPageBrowserProxy, |
| 222 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, | 212 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, |
| 223 browserChannelToI18nId: browserChannelToI18nId, | 213 browserChannelToI18nId: browserChannelToI18nId, |
| 224 isTargetChannelMoreStable: isTargetChannelMoreStable, | 214 isTargetChannelMoreStable: isTargetChannelMoreStable, |
| 225 }; | 215 }; |
| 226 }); | 216 }); |
| OLD | NEW |