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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2661623003: Revert of DevTools: Move radio button input element into Shadow DOM (Closed)
Patch Set: Created 3 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 }, 1347 },
1348 1348
1349 __proto__: HTMLButtonElement.prototype 1349 __proto__: HTMLButtonElement.prototype
1350 }); 1350 });
1351 1351
1352 UI.registerCustomElement('label', 'dt-radio', { 1352 UI.registerCustomElement('label', 'dt-radio', {
1353 /** 1353 /**
1354 * @this {Element} 1354 * @this {Element}
1355 */ 1355 */
1356 createdCallback: function() { 1356 createdCallback: function() {
1357 this.radioElement = this.createChild('input', 'dt-radio-button');
1358 this.radioElement.type = 'radio';
1357 var root = UI.createShadowRootWithCoreStyles(this, 'ui/radioButton.css'); 1359 var root = UI.createShadowRootWithCoreStyles(this, 'ui/radioButton.css');
1358 this.radioElement = root.createChild('input', 'dt-radio-button'); 1360 root.createChild('content').select = '.dt-radio-button';
1359 this.radioElement.type = 'radio';
1360 root.createChild('content'); 1361 root.createChild('content');
1361 this.addEventListener('click', radioClickHandler, false); 1362 this.addEventListener('click', radioClickHandler, false);
1362 }, 1363 },
1363 1364
1364 __proto__: HTMLLabelElement.prototype 1365 __proto__: HTMLLabelElement.prototype
1365 }); 1366 });
1366 1367
1367 /** 1368 /**
1368 * @param {!Event} event 1369 * @param {!Event} event
1369 * @suppressReceiverCheck 1370 * @suppressReceiverCheck
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 callback(fileSelectorElement.files[0]); 2031 callback(fileSelectorElement.files[0]);
2031 } 2032 }
2032 return fileSelectorElement; 2033 return fileSelectorElement;
2033 }; 2034 };
2034 2035
2035 /** 2036 /**
2036 * @const 2037 * @const
2037 * @type {number} 2038 * @type {number}
2038 */ 2039 */
2039 UI.MaxLengthForDisplayedURLs = 150; 2040 UI.MaxLengthForDisplayedURLs = 150;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698