OLD | NEW |
---|---|
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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1497 /** | 1497 /** |
1498 * @param {string} color | 1498 * @param {string} color |
1499 * @this {Element} | 1499 * @this {Element} |
1500 */ | 1500 */ |
1501 set borderColor(color) | 1501 set borderColor(color) |
1502 { | 1502 { |
1503 this.checkboxElement.classList.add("dt-checkbox-themed"); | 1503 this.checkboxElement.classList.add("dt-checkbox-themed"); |
1504 this.checkboxElement.style.borderColor = color; | 1504 this.checkboxElement.style.borderColor = color; |
1505 }, | 1505 }, |
1506 | 1506 |
1507 /** | |
1508 * @param {boolean} focus | |
1509 * @this {Element} | |
1510 */ | |
1511 set focusVisible(focus) | |
lushnikov
2016/07/08 23:01:22
1. let's make this a function (we tend to avoid se
flandy
2016/07/11 18:46:43
1. Using a function causes an issue with the Closu
| |
1512 { | |
1513 if (focus) | |
1514 this.checkboxElement.classList.add("dt-checkbox-focus-visible"); | |
lushnikov
2016/07/08 23:01:22
this "if" could be written in a one line:
this.ch
flandy
2016/07/11 18:46:43
Done
| |
1515 else | |
1516 this.checkboxElement.classList.remove("dt-checkbox-focus-visible "); | |
1517 }, | |
1518 | |
1507 __proto__: HTMLLabelElement.prototype | 1519 __proto__: HTMLLabelElement.prototype |
1508 }); | 1520 }); |
1509 | 1521 |
1510 registerCustomElement("label", "dt-icon-label", { | 1522 registerCustomElement("label", "dt-icon-label", { |
1511 /** | 1523 /** |
1512 * @this {Element} | 1524 * @this {Element} |
1513 */ | 1525 */ |
1514 createdCallback: function() | 1526 createdCallback: function() |
1515 { | 1527 { |
1516 var root = WebInspector.createShadowRootWithCoreStyles(this, "ui/sma llIcon.css"); | 1528 var root = WebInspector.createShadowRootWithCoreStyles(this, "ui/sma llIcon.css"); |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1986 * @param {string} title | 1998 * @param {string} title |
1987 * @return {!Element} | 1999 * @return {!Element} |
1988 */ | 2000 */ |
1989 WebInspector.linkifyDocumentationURLAsNode = function(article, title) | 2001 WebInspector.linkifyDocumentationURLAsNode = function(article, title) |
1990 { | 2002 { |
1991 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true); | 2003 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true); |
1992 } | 2004 } |
1993 | 2005 |
1994 /** @type {!WebInspector.ThemeSupport} */ | 2006 /** @type {!WebInspector.ThemeSupport} */ |
1995 WebInspector.themeSupport; | 2007 WebInspector.themeSupport; |
OLD | NEW |