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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/DevicesSettingsTab.js

Issue 1642233002: [DevTools] Cleanup various bindInput implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-mode-cleanup-misc
Patch Set: Created 4 years, 10 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 * @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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698