| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * Copyright (C) 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 /** | 32 /** |
| 33 * @constructor | 33 * @constructor |
| 34 * @extends {WebInspector.VBox} | 34 * @extends {WebInspector.VBox} |
| 35 * @param {!WebInspector.Searchable} searchable | 35 * @param {!WebInspector.Searchable} searchable |
| 36 */ | 36 */ |
| 37 WebInspector.SearchableView = function(searchable) | 37 WebInspector.SearchableView = function(searchable) |
| 38 { | 38 { |
| 39 WebInspector.VBox.call(this); | 39 WebInspector.VBox.call(this); |
| 40 | 40 |
| 41 this._searchProvider = searchable; | 41 this._searchProvider = searchable; |
| 42 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false); | 42 this.element.addEventListener("keydown", this._onKeyDown.bind(this), true); |
| 43 | 43 |
| 44 this._footerElementContainer = this.element.createChild("div", "search-bar s
tatus-bar hidden"); | 44 this._footerElementContainer = this.element.createChild("div", "search-bar s
tatus-bar hidden"); |
| 45 this._footerElementContainer.style.order = 100; | 45 this._footerElementContainer.style.order = 100; |
| 46 | 46 |
| 47 this._footerElement = this._footerElementContainer.createChild("table", "too
lbar-search"); | 47 this._footerElement = this._footerElementContainer.createChild("table", "too
lbar-search"); |
| 48 this._footerElement.cellSpacing = 0; | 48 this._footerElement.cellSpacing = 0; |
| 49 | 49 |
| 50 this._firstRowElement = this._footerElement.createChild("tr"); | 50 this._firstRowElement = this._footerElement.createChild("tr"); |
| 51 this._secondRowElement = this._footerElement.createChild("tr", "hidden"); | 51 this._secondRowElement = this._footerElement.createChild("tr", "hidden"); |
| 52 | 52 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 * @param {string} text | 569 * @param {string} text |
| 570 */ | 570 */ |
| 571 replaceSelectionWith: function(text) { }, | 571 replaceSelectionWith: function(text) { }, |
| 572 | 572 |
| 573 /** | 573 /** |
| 574 * @param {string} query | 574 * @param {string} query |
| 575 * @param {string} replacement | 575 * @param {string} replacement |
| 576 */ | 576 */ |
| 577 replaceAllWith: function(query, replacement) { } | 577 replaceAllWith: function(query, replacement) { } |
| 578 } | 578 } |
| OLD | NEW |