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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2442543002: DevTools: New snippet button and icon (Closed)
Patch Set: Undo security stuff Created 4 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 18 matching lines...) Expand all
29 /** 29 /**
30 * @constructor 30 * @constructor
31 * @extends {WebInspector.VBox} 31 * @extends {WebInspector.VBox}
32 * @implements {WebInspector.TargetManager.Observer} 32 * @implements {WebInspector.TargetManager.Observer}
33 */ 33 */
34 WebInspector.NavigatorView = function() 34 WebInspector.NavigatorView = function()
35 { 35 {
36 WebInspector.VBox.call(this); 36 WebInspector.VBox.call(this);
37 37
38 this._scriptsTree = new TreeOutlineInShadow(); 38 this._scriptsTree = new TreeOutlineInShadow();
39 this.registerRequiredCSS("sources/navigatorView.css");
dgozman 2016/10/20 20:19:27 Let's have two separate css files.
einbinder 2016/10/20 20:56:13 Done.
39 this._scriptsTree.registerRequiredCSS("sources/navigatorView.css"); 40 this._scriptsTree.registerRequiredCSS("sources/navigatorView.css");
40 this._scriptsTree.setComparator(WebInspector.NavigatorView._treeElementsComp are); 41 this._scriptsTree.setComparator(WebInspector.NavigatorView._treeElementsComp are);
42 this._scriptsTree.element.style.overflowY = "auto";
dgozman 2016/10/20 20:19:27 CSS in javascript, no-no!
einbinder 2016/10/20 20:56:13 Done.
41 this.element.appendChild(this._scriptsTree.element); 43 this.element.appendChild(this._scriptsTree.element);
42 this.setDefaultFocusedElement(this._scriptsTree.element); 44 this.setDefaultFocusedElement(this._scriptsTree.element);
43 45
44 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.NavigatorUISource CodeTreeNode>} */ 46 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.NavigatorUISource CodeTreeNode>} */
45 this._uiSourceCodeNodes = new Map(); 47 this._uiSourceCodeNodes = new Map();
46 /** @type {!Map.<string, !WebInspector.NavigatorFolderTreeNode>} */ 48 /** @type {!Map.<string, !WebInspector.NavigatorFolderTreeNode>} */
47 this._subfolderNodes = new Map(); 49 this._subfolderNodes = new Map();
48 50
49 this._rootNode = new WebInspector.NavigatorRootTreeNode(this); 51 this._rootNode = new WebInspector.NavigatorRootTreeNode(this);
50 this._rootNode.populate(); 52 this._rootNode.populate();
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 */ 1682 */
1681 setTitle: function(title) 1683 setTitle: function(title)
1682 { 1684 {
1683 this._title = title; 1685 this._title = title;
1684 if (this._treeElement) 1686 if (this._treeElement)
1685 this._treeElement.title = this._title; 1687 this._treeElement.title = this._title;
1686 }, 1688 },
1687 1689
1688 __proto__: WebInspector.NavigatorTreeNode.prototype 1690 __proto__: WebInspector.NavigatorTreeNode.prototype
1689 } 1691 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698