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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 { | 748 { |
749 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Events
.UISourceCodeAdded, this._uiSourceCodeAdded, this); | 749 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Events
.UISourceCodeAdded, this._uiSourceCodeAdded, this); |
750 }, | 750 }, |
751 | 751 |
752 __proto__: WebInspector.SelectionDialogContentProvider.prototype | 752 __proto__: WebInspector.SelectionDialogContentProvider.prototype |
753 } | 753 } |
754 | 754 |
755 /** | 755 /** |
756 * @constructor | 756 * @constructor |
757 * @extends {WebInspector.SelectUISourceCodeDialog} | 757 * @extends {WebInspector.SelectUISourceCodeDialog} |
758 * @param {WebInspector.ScriptsPanel} panel | 758 * @param {WebInspector.SourcesPanel} panel |
759 * @param {Map.<WebInspector.UISourceCode, number>=} defaultScores | 759 * @param {Map.<WebInspector.UISourceCode, number>=} defaultScores |
760 */ | 760 */ |
761 WebInspector.OpenResourceDialog = function(panel, defaultScores) | 761 WebInspector.OpenResourceDialog = function(panel, defaultScores) |
762 { | 762 { |
763 WebInspector.SelectUISourceCodeDialog.call(this, defaultScores); | 763 WebInspector.SelectUISourceCodeDialog.call(this, defaultScores); |
764 this._panel = panel; | 764 this._panel = panel; |
765 } | 765 } |
766 | 766 |
767 WebInspector.OpenResourceDialog.prototype = { | 767 WebInspector.OpenResourceDialog.prototype = { |
768 | 768 |
(...skipping 24 matching lines...) Expand all Loading... |
793 */ | 793 */ |
794 filterProject: function(project) | 794 filterProject: function(project) |
795 { | 795 { |
796 return !project.isServiceProject(); | 796 return !project.isServiceProject(); |
797 }, | 797 }, |
798 | 798 |
799 __proto__: WebInspector.SelectUISourceCodeDialog.prototype | 799 __proto__: WebInspector.SelectUISourceCodeDialog.prototype |
800 } | 800 } |
801 | 801 |
802 /** | 802 /** |
803 * @param {WebInspector.ScriptsPanel} panel | 803 * @param {WebInspector.SourcesPanel} panel |
804 * @param {Element} relativeToElement | 804 * @param {Element} relativeToElement |
805 * @param {string=} name | 805 * @param {string=} name |
806 * @param {Map.<WebInspector.UISourceCode, number>=} defaultScores | 806 * @param {Map.<WebInspector.UISourceCode, number>=} defaultScores |
807 */ | 807 */ |
808 WebInspector.OpenResourceDialog.show = function(panel, relativeToElement, name,
defaultScores) | 808 WebInspector.OpenResourceDialog.show = function(panel, relativeToElement, name,
defaultScores) |
809 { | 809 { |
810 if (WebInspector.Dialog.currentInstance()) | 810 if (WebInspector.Dialog.currentInstance()) |
811 return; | 811 return; |
812 | 812 |
813 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(new WebInspector.OpenResourceDialog(panel, defaultScores)); | 813 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(new WebInspector.OpenResourceDialog(panel, defaultScores)); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 WebInspector.SelectUISourceCodeForProjectTypeDialog.show = function(name, type,
callback, relativeToElement) | 859 WebInspector.SelectUISourceCodeForProjectTypeDialog.show = function(name, type,
callback, relativeToElement) |
860 { | 860 { |
861 if (WebInspector.Dialog.currentInstance()) | 861 if (WebInspector.Dialog.currentInstance()) |
862 return; | 862 return; |
863 | 863 |
864 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(new WebInspector.SelectUISourceCodeForProjectTypeDialog(type, callback)); | 864 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(new WebInspector.SelectUISourceCodeForProjectTypeDialog(type, callback)); |
865 filteredItemSelectionDialog.setQuery(name); | 865 filteredItemSelectionDialog.setQuery(name); |
866 filteredItemSelectionDialog.renderAsTwoRows(); | 866 filteredItemSelectionDialog.renderAsTwoRows(); |
867 WebInspector.Dialog.show(relativeToElement, filteredItemSelectionDialog); | 867 WebInspector.Dialog.show(relativeToElement, filteredItemSelectionDialog); |
868 } | 868 } |
OLD | NEW |