OLD | NEW |
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 * @constructor | 6 * @constructor |
7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
8 * @implements {WebInspector.ListWidget.Delegate} | 8 * @implements {WebInspector.ListWidget.Delegate} |
9 */ | 9 */ |
10 WebInspector.DevicesSettingsTab = function() | 10 WebInspector.DevicesSettingsTab = function() |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 } | 214 } |
215 | 215 |
216 /** | 216 /** |
217 * @param {*} item | 217 * @param {*} item |
218 * @param {number} index | 218 * @param {number} index |
219 * @param {!HTMLInputElement|!HTMLSelectElement} input | 219 * @param {!HTMLInputElement|!HTMLSelectElement} input |
220 * @return {boolean} | 220 * @return {boolean} |
221 */ | 221 */ |
222 function sizeValidator(item, index, input) | 222 function sizeValidator(item, index, input) |
223 { | 223 { |
224 return !WebInspector.DeviceModeModel.deviceSizeValidator(input.value
); | 224 return WebInspector.DeviceModeModel.deviceSizeValidator(input.value)
; |
225 } | 225 } |
226 | 226 |
227 /** | 227 /** |
228 * @param {*} item | 228 * @param {*} item |
229 * @param {number} index | 229 * @param {number} index |
230 * @param {!HTMLInputElement|!HTMLSelectElement} input | 230 * @param {!HTMLInputElement|!HTMLSelectElement} input |
231 * @return {boolean} | 231 * @return {boolean} |
232 */ | 232 */ |
233 function scaleValidator(item, index, input) | 233 function scaleValidator(item, index, input) |
234 { | 234 { |
235 return !WebInspector.DeviceModeModel.deviceScaleFactorValidator(inpu
t.value); | 235 return WebInspector.DeviceModeModel.deviceScaleFactorValidator(input
.value); |
236 } | 236 } |
237 | 237 |
238 /** | 238 /** |
239 * @param {*} item | 239 * @param {*} item |
240 * @param {number} index | 240 * @param {number} index |
241 * @param {!HTMLInputElement|!HTMLSelectElement} input | 241 * @param {!HTMLInputElement|!HTMLSelectElement} input |
242 * @return {boolean} | 242 * @return {boolean} |
243 */ | 243 */ |
244 function userAgentValidator(item, index, input) | 244 function userAgentValidator(item, index, input) |
245 { | 245 { |
246 return true; | 246 return true; |
247 } | 247 } |
248 }, | 248 }, |
249 | 249 |
250 __proto__: WebInspector.VBox.prototype | 250 __proto__: WebInspector.VBox.prototype |
251 } | 251 } |
OLD | NEW |