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

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

Issue 2080573003: Track all changed nodes during an update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make suggested change. Created 4 years, 3 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/tabs_automation_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
index 2082446db1475131eb73dc46216c180b5be54407..836c23c51f43ff1f7145c023806a45bca479501f 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js
@@ -28,7 +28,8 @@ TabsAutomationHandler = function(tabRoot) {
// When the root is focused, simulate what happens on a load complete.
if (tabRoot.state.focused) {
this.onLoadComplete(
- new chrome.automation.AutomationEvent(EventType.loadComplete, tabRoot));
+ new chrome.automation.AutomationEvent(EventType.loadComplete, tabRoot,
+ 'page'));
}
};
@@ -44,7 +45,7 @@ TabsAutomationHandler.prototype = {
onLoadComplete: function(evt) {
var focused = evt.target.find({state: {focused: true}}) || evt.target;
this.onFocus(new chrome.automation.AutomationEvent(
- EventType.focus, focused));
+ EventType.focus, focused, evt.eventFrom));
}
};

Powered by Google App Engine
This is Rietveld 408576698