OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Joseph Pecoraro | 2 * Copyright (C) 2009 Joseph Pecoraro |
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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 delete this._drawerWasVisible; | 55 delete this._drawerWasVisible; |
56 } | 56 } |
57 WebInspector.Panel.prototype.willHide.call(this); | 57 WebInspector.Panel.prototype.willHide.call(this); |
58 }, | 58 }, |
59 | 59 |
60 searchCanceled: function() | 60 searchCanceled: function() |
61 { | 61 { |
62 this._view.searchCanceled(); | 62 this._view.searchCanceled(); |
63 }, | 63 }, |
64 | 64 |
65 canFilter: function() | |
66 { | |
67 return this._view.canFilter(); | |
68 }, | |
69 | |
70 /** | 65 /** |
71 * @param {string} query | 66 * @param {string} query |
72 * @param {boolean} shouldJump | 67 * @param {boolean} shouldJump |
73 */ | 68 */ |
74 performSearch: function(query, shouldJump) | 69 performSearch: function(query, shouldJump) |
75 { | 70 { |
76 this._view.performSearch(query, shouldJump, this); | 71 this._view.performSearch(query, shouldJump, this); |
77 }, | 72 }, |
78 | 73 |
79 /** | |
80 * @param {string} query | |
81 */ | |
82 performFilter: function(query) | |
83 { | |
84 this._view.performFilter(query); | |
85 }, | |
86 | |
87 jumpToNextSearchResult: function() | 74 jumpToNextSearchResult: function() |
88 { | 75 { |
89 this._view.jumpToNextSearchResult(this); | 76 this._view.jumpToNextSearchResult(this); |
90 }, | 77 }, |
91 | 78 |
92 jumpToPreviousSearchResult: function() | 79 jumpToPreviousSearchResult: function() |
93 { | 80 { |
94 this._view.jumpToPreviousSearchResult(this); | 81 this._view.jumpToPreviousSearchResult(this); |
95 }, | 82 }, |
96 | 83 |
97 __proto__: WebInspector.Panel.prototype | 84 __proto__: WebInspector.Panel.prototype |
98 } | 85 } |
OLD | NEW |