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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 /** | 79 /** |
80 * @return {!WebInspector.SearchableView} | 80 * @return {!WebInspector.SearchableView} |
81 */ | 81 */ |
82 searchableView: function() | 82 searchableView: function() |
83 { | 83 { |
84 return this._searchableView; | 84 return this._searchableView; |
85 }, | 85 }, |
86 | 86 |
87 /** | 87 /** |
88 * @param {string} query | 88 * @param {!WebInspector.SearchableView.SearchConfig} searchConfig |
89 * @param {boolean} shouldJump | 89 * @param {boolean} shouldJump |
90 * @param {boolean=} jumpBackwards | 90 * @param {boolean=} jumpBackwards |
91 */ | 91 */ |
92 performSearch: function(query, shouldJump, jumpBackwards) | 92 performSearch: function(searchConfig, shouldJump, jumpBackwards) |
93 { | 93 { |
| 94 var query = searchConfig.query; |
94 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.PerformSearch, query); | 95 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.PerformSearch, query); |
95 }, | 96 }, |
96 | 97 |
97 jumpToNextSearchResult: function() | 98 jumpToNextSearchResult: function() |
98 { | 99 { |
99 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.NextSearchResult); | 100 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.NextSearchResult); |
100 }, | 101 }, |
101 | 102 |
102 jumpToPreviousSearchResult: function() | 103 jumpToPreviousSearchResult: function() |
103 { | 104 { |
104 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.PreviousSearchResult); | 105 this._server.notifySearchAction(this.name, WebInspector.extensionAPI.pan
els.SearchAction.PreviousSearchResult); |
105 }, | 106 }, |
106 | 107 |
| 108 /** |
| 109 * @return {boolean} |
| 110 */ |
| 111 supportsCaseSensitiveSearch: function() |
| 112 { |
| 113 return false; |
| 114 }, |
| 115 |
| 116 /** |
| 117 * @return {boolean} |
| 118 */ |
| 119 supportsRegexSearch: function() |
| 120 { |
| 121 return false; |
| 122 }, |
| 123 |
107 __proto__: WebInspector.Panel.prototype | 124 __proto__: WebInspector.Panel.prototype |
108 } | 125 } |
109 | 126 |
110 /** | 127 /** |
111 * @constructor | 128 * @constructor |
112 * @param {!WebInspector.ExtensionServer} server | 129 * @param {!WebInspector.ExtensionServer} server |
113 * @param {string} id | 130 * @param {string} id |
114 * @param {string} iconURL | 131 * @param {string} iconURL |
115 * @param {string=} tooltip | 132 * @param {string=} tooltip |
116 * @param {boolean=} disabled | 133 * @param {boolean=} disabled |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 if (!title) | 287 if (!title) |
271 section.headerElement.classList.add("hidden"); | 288 section.headerElement.classList.add("hidden"); |
272 section.expanded = true; | 289 section.expanded = true; |
273 section.editable = false; | 290 section.editable = false; |
274 this._objectPropertiesView.element.appendChild(section.element); | 291 this._objectPropertiesView.element.appendChild(section.element); |
275 callback(); | 292 callback(); |
276 }, | 293 }, |
277 | 294 |
278 __proto__: WebInspector.SidebarPane.prototype | 295 __proto__: WebInspector.SidebarPane.prototype |
279 } | 296 } |
OLD | NEW |