| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 524 |
| 525 UI.SearchableView._symbol = Symbol('searchableView'); | 525 UI.SearchableView._symbol = Symbol('searchableView'); |
| 526 | 526 |
| 527 | 527 |
| 528 /** | 528 /** |
| 529 * @interface | 529 * @interface |
| 530 */ | 530 */ |
| 531 UI.Searchable = function() {}; | 531 UI.Searchable = function() {}; |
| 532 | 532 |
| 533 UI.Searchable.prototype = { | 533 UI.Searchable.prototype = { |
| 534 searchCanceled: function() {}, | 534 searchCanceled() {}, |
| 535 | 535 |
| 536 /** | 536 /** |
| 537 * @param {!UI.SearchableView.SearchConfig} searchConfig | 537 * @param {!UI.SearchableView.SearchConfig} searchConfig |
| 538 * @param {boolean} shouldJump | 538 * @param {boolean} shouldJump |
| 539 * @param {boolean=} jumpBackwards | 539 * @param {boolean=} jumpBackwards |
| 540 */ | 540 */ |
| 541 performSearch: function(searchConfig, shouldJump, jumpBackwards) {}, | 541 performSearch(searchConfig, shouldJump, jumpBackwards) {}, |
| 542 | 542 |
| 543 jumpToNextSearchResult: function() {}, | 543 jumpToNextSearchResult() {}, |
| 544 | 544 |
| 545 jumpToPreviousSearchResult: function() {}, | 545 jumpToPreviousSearchResult() {}, |
| 546 | 546 |
| 547 /** | 547 /** |
| 548 * @return {boolean} | 548 * @return {boolean} |
| 549 */ | 549 */ |
| 550 supportsCaseSensitiveSearch: function() {}, | 550 supportsCaseSensitiveSearch() {}, |
| 551 | 551 |
| 552 /** | 552 /** |
| 553 * @return {boolean} | 553 * @return {boolean} |
| 554 */ | 554 */ |
| 555 supportsRegexSearch: function() {} | 555 supportsRegexSearch() {} |
| 556 }; | 556 }; |
| 557 | 557 |
| 558 /** | 558 /** |
| 559 * @interface | 559 * @interface |
| 560 */ | 560 */ |
| 561 UI.Replaceable = function() {}; | 561 UI.Replaceable = function() {}; |
| 562 | 562 |
| 563 UI.Replaceable.prototype = { | 563 UI.Replaceable.prototype = { |
| 564 /** | 564 /** |
| 565 * @param {!UI.SearchableView.SearchConfig} searchConfig | 565 * @param {!UI.SearchableView.SearchConfig} searchConfig |
| 566 * @param {string} replacement | 566 * @param {string} replacement |
| 567 */ | 567 */ |
| 568 replaceSelectionWith: function(searchConfig, replacement) {}, | 568 replaceSelectionWith(searchConfig, replacement) {}, |
| 569 | 569 |
| 570 /** | 570 /** |
| 571 * @param {!UI.SearchableView.SearchConfig} searchConfig | 571 * @param {!UI.SearchableView.SearchConfig} searchConfig |
| 572 * @param {string} replacement | 572 * @param {string} replacement |
| 573 */ | 573 */ |
| 574 replaceAllWith: function(searchConfig, replacement) {} | 574 replaceAllWith(searchConfig, replacement) {} |
| 575 }; | 575 }; |
| 576 | 576 |
| 577 /** | 577 /** |
| 578 * @unrestricted | 578 * @unrestricted |
| 579 */ | 579 */ |
| 580 UI.SearchableView.SearchConfig = class { | 580 UI.SearchableView.SearchConfig = class { |
| 581 /** | 581 /** |
| 582 * @param {string} query | 582 * @param {string} query |
| 583 * @param {boolean} caseSensitive | 583 * @param {boolean} caseSensitive |
| 584 * @param {boolean} isRegex | 584 * @param {boolean} isRegex |
| (...skipping 26 matching lines...) Expand all Loading... |
| 611 // Silent catch. | 611 // Silent catch. |
| 612 } | 612 } |
| 613 | 613 |
| 614 // Otherwise just do a plain text search. | 614 // Otherwise just do a plain text search. |
| 615 if (!regex) | 615 if (!regex) |
| 616 regex = createPlainTextSearchRegex(query, modifiers); | 616 regex = createPlainTextSearchRegex(query, modifiers); |
| 617 | 617 |
| 618 return regex; | 618 return regex; |
| 619 } | 619 } |
| 620 }; | 620 }; |
| OLD | NEW |