| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 /** | 53 /** |
| 54 * @param {string} message | 54 * @param {string} message |
| 55 * @return {!WebInspector.EmptyWidget} | 55 * @return {!WebInspector.EmptyWidget} |
| 56 */ | 56 */ |
| 57 _createMessageView: function(message) | 57 _createMessageView: function(message) |
| 58 { | 58 { |
| 59 return new WebInspector.EmptyWidget(message); | 59 return new WebInspector.EmptyWidget(message); |
| 60 }, | 60 }, |
| 61 | 61 |
| 62 /** |
| 63 * @override |
| 64 */ |
| 62 contentLoaded: function() | 65 contentLoaded: function() |
| 63 { | 66 { |
| 64 if ((!this.request.content || !this.sourceView) && !this.request.content
Error()) { | 67 if ((!this.request.content || !this.sourceView) && !this.request.content
Error()) { |
| 65 if (!this._emptyWidget) { | 68 if (!this._emptyWidget) { |
| 66 this._emptyWidget = this._createMessageView(WebInspector.UIStrin
g("This request has no response data available.")); | 69 this._emptyWidget = this._createMessageView(WebInspector.UIStrin
g("This request has no response data available.")); |
| 67 this._emptyWidget.show(this.element); | 70 this._emptyWidget.show(this.element); |
| 68 } | 71 } |
| 69 } else { | 72 } else { |
| 70 if (this._emptyWidget) { | 73 if (this._emptyWidget) { |
| 71 this._emptyWidget.detach(); | 74 this._emptyWidget.detach(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 * @param {string} query | 140 * @param {string} query |
| 138 * @param {boolean} caseSensitive | 141 * @param {boolean} caseSensitive |
| 139 * @param {boolean} isRegex | 142 * @param {boolean} isRegex |
| 140 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback | 143 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback |
| 141 */ | 144 */ |
| 142 searchInContent: function(query, caseSensitive, isRegex, callback) | 145 searchInContent: function(query, caseSensitive, isRegex, callback) |
| 143 { | 146 { |
| 144 this._request.searchInContent(query, caseSensitive, isRegex, callback); | 147 this._request.searchInContent(query, caseSensitive, isRegex, callback); |
| 145 } | 148 } |
| 146 }; | 149 }; |
| OLD | NEW |