OLD | NEW |
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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 | 872 |
873 /** | 873 /** |
874 * @param {boolean=} select | 874 * @param {boolean=} select |
875 */ | 875 */ |
876 reveal: function(select) | 876 reveal: function(select) |
877 { | 877 { |
878 this.parent.populate(); | 878 this.parent.populate(); |
879 this.parent.treeElement().expand(); | 879 this.parent.treeElement().expand(); |
880 this._treeElement.reveal(); | 880 this._treeElement.reveal(); |
881 if (select) | 881 if (select) |
882 this._treeElement.select(); | 882 this._treeElement.select(true); |
883 }, | 883 }, |
884 | 884 |
885 /** | 885 /** |
886 * @param {function(boolean)=} callback | 886 * @param {function(boolean)=} callback |
887 */ | 887 */ |
888 rename: function(callback) | 888 rename: function(callback) |
889 { | 889 { |
890 if (!this._treeElement) | 890 if (!this._treeElement) |
891 return; | 891 return; |
892 | 892 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 | 1057 |
1058 willRemoveChild: function(node) | 1058 willRemoveChild: function(node) |
1059 { | 1059 { |
1060 if (node._isMerged || !this.isPopulated()) | 1060 if (node._isMerged || !this.isPopulated()) |
1061 return; | 1061 return; |
1062 this._treeElement.removeChild(node._treeElement); | 1062 this._treeElement.removeChild(node._treeElement); |
1063 }, | 1063 }, |
1064 | 1064 |
1065 __proto__: WebInspector.NavigatorTreeNode.prototype | 1065 __proto__: WebInspector.NavigatorTreeNode.prototype |
1066 } | 1066 } |
OLD | NEW |