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

Side by Side Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 805853002: DevTools: Make labeled checkbox a web component (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 { 713 {
714 var treeOutline = this._treeOutlineForNode(node); 714 var treeOutline = this._treeOutlineForNode(node);
715 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node)); 715 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node));
716 }, 716 },
717 717
718 /** 718 /**
719 * @param {!Event} event 719 * @param {!Event} event
720 */ 720 */
721 handleCopyEvent: function(event) 721 handleCopyEvent: function(event)
722 { 722 {
723 if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("el ements-tree-outline")) 723 if (!WebInspector.currentFocusElement() || !WebInspector.currentFocusEle ment().enclosingNodeOrSelfWithClass("elements-tree-outline"))
724 return; 724 return;
725 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); 725 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode());
726 if (treeOutline) 726 if (treeOutline)
727 treeOutline.handleCopyOrCutKeyboardEvent(false, event); 727 treeOutline.handleCopyOrCutKeyboardEvent(false, event);
728 }, 728 },
729 729
730 /** 730 /**
731 * @param {!Event} event 731 * @param {!Event} event
732 */ 732 */
733 handleCutEvent: function(event) 733 handleCutEvent: function(event)
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 WebInspector.ElementsPanelFactory.prototype = { 1075 WebInspector.ElementsPanelFactory.prototype = {
1076 /** 1076 /**
1077 * @override 1077 * @override
1078 * @return {!WebInspector.Panel} 1078 * @return {!WebInspector.Panel}
1079 */ 1079 */
1080 createPanel: function() 1080 createPanel: function()
1081 { 1081 {
1082 return WebInspector.ElementsPanel.instance(); 1082 return WebInspector.ElementsPanel.instance();
1083 } 1083 }
1084 } 1084 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/breakpointsList.css ('k') | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698