| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js
|
| index 5aa0a7c1dfad5ce532f786677f369b9cd3935a10..af0aa2a938b94494490dddf0dd71ceef335e783e 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js
|
| @@ -8,6 +8,9 @@ goog.provide('FindHandler');
|
|
|
| goog.require('Output');
|
|
|
| +goog.scope(function() {
|
| +var TreeChangeObserverFilter = chrome.automation.TreeChangeObserverFilter;
|
| +
|
| /**
|
| * Responds to mode changes.
|
| * @param {ChromeVoxMode} newMode
|
| @@ -27,7 +30,7 @@ FindHandler.onModeChanged = function(newMode, oldMode) {
|
| */
|
| FindHandler.init_ = function() {
|
| chrome.automation.addTreeChangeObserver(
|
| - 'textMarkerChanges', FindHandler.onTextMatch_);
|
| + TreeChangeObserverFilter.NO_TREE_CHANGES, FindHandler.onTextMatch_);
|
| };
|
|
|
| /**
|
| @@ -54,3 +57,5 @@ FindHandler.onTextMatch_ = function(evt) {
|
| .withRichSpeechAndBraille(range, null, Output.EventType.NAVIGATE)
|
| .go();
|
| };
|
| +
|
| +}); // goog.scope
|
|
|