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

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

Issue 2650213005: DevTools: Move radio button input element into Shadow DOM (Closed)
Patch Set: Created 3 years, 11 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'); 1357 var root = UI.createShadowRootWithCoreStyles(this, 'ui/radioButton.css');
1358 this.radioElement = root.createChild('input', 'dt-radio-button');
1358 this.radioElement.type = 'radio'; 1359 this.radioElement.type = 'radio';
1359 var root = UI.createShadowRootWithCoreStyles(this, 'ui/radioButton.css');
1360 root.createChild('content').select = '.dt-radio-button';
1361 root.createChild('content'); 1360 root.createChild('content');
1362 this.addEventListener('click', radioClickHandler, false); 1361 this.addEventListener('click', radioClickHandler, false);
1363 }, 1362 },
1364 1363
1365 __proto__: HTMLLabelElement.prototype 1364 __proto__: HTMLLabelElement.prototype
1366 }); 1365 });
1367 1366
1368 /** 1367 /**
1369 * @param {!Event} event 1368 * @param {!Event} event
1370 * @suppressReceiverCheck 1369 * @suppressReceiverCheck
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 callback(fileSelectorElement.files[0]); 2030 callback(fileSelectorElement.files[0]);
2032 } 2031 }
2033 return fileSelectorElement; 2032 return fileSelectorElement;
2034 }; 2033 };
2035 2034
2036 /** 2035 /**
2037 * @const 2036 * @const
2038 * @type {number} 2037 * @type {number}
2039 */ 2038 */
2040 UI.MaxLengthForDisplayedURLs = 150; 2039 UI.MaxLengthForDisplayedURLs = 150;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698