Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1579)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698