| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 this._searchNavigationNextElement = | 90 this._searchNavigationNextElement = |
| 91 searchNavigationElement.createChild('div', 'toolbar-search-navigation to
olbar-search-navigation-next'); | 91 searchNavigationElement.createChild('div', 'toolbar-search-navigation to
olbar-search-navigation-next'); |
| 92 this._searchNavigationNextElement.addEventListener('click', this._onNextButt
onSearch.bind(this), false); | 92 this._searchNavigationNextElement.addEventListener('click', this._onNextButt
onSearch.bind(this), false); |
| 93 this._searchNavigationNextElement.title = Common.UIString('Search Next'); | 93 this._searchNavigationNextElement.title = Common.UIString('Search Next'); |
| 94 | 94 |
| 95 this._searchInputElement.addEventListener('keydown', this._onSearchKeyDown.b
ind(this), true); | 95 this._searchInputElement.addEventListener('keydown', this._onSearchKeyDown.b
ind(this), true); |
| 96 this._searchInputElement.addEventListener('input', this._onInput.bind(this),
false); | 96 this._searchInputElement.addEventListener('input', this._onInput.bind(this),
false); |
| 97 | 97 |
| 98 this._replaceInputElement = | 98 this._replaceInputElement = |
| 99 searchInputElements.createChild('input', 'search-replace toolbar-replace
-control hidden'); | 99 searchInputElements.createChild('input', 'search-replace toolbar-replace
-control default-input hidden'); |
| 100 this._replaceInputElement.addEventListener('keydown', this._onReplaceKeyDown
.bind(this), true); | 100 this._replaceInputElement.addEventListener('keydown', this._onReplaceKeyDown
.bind(this), true); |
| 101 this._replaceInputElement.placeholder = Common.UIString('Replace'); | 101 this._replaceInputElement.placeholder = Common.UIString('Replace'); |
| 102 | 102 |
| 103 // Build the buttons (Find, Previous, Replace, Replace All). | 103 // Build the buttons (Find, Previous, Replace, Replace All). |
| 104 this._buttonsContainer = this._footerElement.createChild('div', 'toolbar-sea
rch-buttons hidden'); | 104 this._buttonsContainer = this._footerElement.createChild('div', 'toolbar-sea
rch-buttons hidden'); |
| 105 | 105 |
| 106 var findButtonElement = this._buttonsContainer.createChild('button', 'search
-action-button'); | 106 var findButtonElement = this._buttonsContainer.createChild('button', 'search
-action-button'); |
| 107 findButtonElement.textContent = Common.UIString('Find'); | 107 findButtonElement.textContent = Common.UIString('Find'); |
| 108 findButtonElement.tabIndex = -1; | 108 findButtonElement.tabIndex = -1; |
| 109 findButtonElement.addEventListener('click', this._onFindClick.bind(this), fa
lse); | 109 findButtonElement.addEventListener('click', this._onFindClick.bind(this), fa
lse); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 // Silent catch. | 601 // Silent catch. |
| 602 } | 602 } |
| 603 | 603 |
| 604 // Otherwise just do a plain text search. | 604 // Otherwise just do a plain text search. |
| 605 if (!regex) | 605 if (!regex) |
| 606 regex = createPlainTextSearchRegex(query, modifiers); | 606 regex = createPlainTextSearchRegex(query, modifiers); |
| 607 | 607 |
| 608 return regex; | 608 return regex; |
| 609 } | 609 } |
| 610 }; | 610 }; |
| OLD | NEW |