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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 /** | 44 /** |
45 * @param {!WebInspector.View} view | 45 * @param {!WebInspector.View} view |
46 * @param {!WebInspector.UISourceCode} uiSourceCode | 46 * @param {!WebInspector.UISourceCode} uiSourceCode |
47 * @param {function(number, number)} selectItemCallback | 47 * @param {function(number, number)} selectItemCallback |
48 */ | 48 */ |
49 WebInspector.StyleSheetOutlineDialog.show = function(view, uiSourceCode, selectI
temCallback) | 49 WebInspector.StyleSheetOutlineDialog.show = function(view, uiSourceCode, selectI
temCallback) |
50 { | 50 { |
51 if (WebInspector.Dialog.currentInstance()) | 51 if (WebInspector.Dialog.currentInstance()) |
52 return null; | 52 return; |
53 var delegate = new WebInspector.StyleSheetOutlineDialog(uiSourceCode, select
ItemCallback); | 53 var delegate = new WebInspector.StyleSheetOutlineDialog(uiSourceCode, select
ItemCallback); |
54 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(delegate); | 54 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDial
og(delegate); |
55 WebInspector.Dialog.show(view.element, filteredItemSelectionDialog); | 55 WebInspector.Dialog.show(view.element, filteredItemSelectionDialog); |
56 } | 56 } |
57 | 57 |
58 WebInspector.StyleSheetOutlineDialog.prototype = { | 58 WebInspector.StyleSheetOutlineDialog.prototype = { |
59 /** | 59 /** |
60 * @return {number} | 60 * @return {number} |
61 */ | 61 */ |
62 itemCount: function() | 62 itemCount: function() |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 this._selectItemCallback(lineNumber, rule.columnNumber); | 111 this._selectItemCallback(lineNumber, rule.columnNumber); |
112 }, | 112 }, |
113 | 113 |
114 dispose: function() | 114 dispose: function() |
115 { | 115 { |
116 this._cssParser.dispose(); | 116 this._cssParser.dispose(); |
117 }, | 117 }, |
118 | 118 |
119 __proto__: WebInspector.SelectionDialogContentProvider.prototype | 119 __proto__: WebInspector.SelectionDialogContentProvider.prototype |
120 } | 120 } |
OLD | NEW |