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

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

Issue 2096183002: DevTools: Added styling to focused checkboxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 5 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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 visualizeFocus(focus)
1512 {
1513 this.checkboxElement.classList.toggle("dt-checkbox-visualize-focus", focus);
1514 },
1515
1507 __proto__: HTMLLabelElement.prototype 1516 __proto__: HTMLLabelElement.prototype
1508 }); 1517 });
1509 1518
1510 registerCustomElement("label", "dt-icon-label", { 1519 registerCustomElement("label", "dt-icon-label", {
1511 /** 1520 /**
1512 * @this {Element} 1521 * @this {Element}
1513 */ 1522 */
1514 createdCallback: function() 1523 createdCallback: function()
1515 { 1524 {
1516 var root = WebInspector.createShadowRootWithCoreStyles(this, "ui/sma llIcon.css"); 1525 var root = WebInspector.createShadowRootWithCoreStyles(this, "ui/sma llIcon.css");
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 * @param {string} title 1995 * @param {string} title
1987 * @return {!Element} 1996 * @return {!Element}
1988 */ 1997 */
1989 WebInspector.linkifyDocumentationURLAsNode = function(article, title) 1998 WebInspector.linkifyDocumentationURLAsNode = function(article, title)
1990 { 1999 {
1991 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true); 2000 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true);
1992 } 2001 }
1993 2002
1994 /** @type {!WebInspector.ThemeSupport} */ 2003 /** @type {!WebInspector.ThemeSupport} */
1995 WebInspector.themeSupport; 2004 WebInspector.themeSupport;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698