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

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

Issue 1705853002: NOT FOR REVIEW. ax tree focus with debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Handles automation from a tabs automation node. 6 * @fileoverview Handles automation from a tabs automation node.
7 */ 7 */
8 8
9 goog.provide('TabsAutomationHandler'); 9 goog.provide('TabsAutomationHandler');
10 10
(...skipping 22 matching lines...) Expand all
33 TabsAutomationHandler.prototype = { 33 TabsAutomationHandler.prototype = {
34 __proto__: DesktopAutomationHandler.prototype, 34 __proto__: DesktopAutomationHandler.prototype,
35 35
36 /** @override */ 36 /** @override */
37 didHandleEvent_: function(evt) { 37 didHandleEvent_: function(evt) {
38 evt.stopPropagation(); 38 evt.stopPropagation();
39 }, 39 },
40 40
41 /** @override */ 41 /** @override */
42 onLoadComplete: function(evt) { 42 onLoadComplete: function(evt) {
43 console.log('tabs onLoadComplete');
43 ChromeVoxState.instance.refreshMode(evt.target.docUrl); 44 ChromeVoxState.instance.refreshMode(evt.target.docUrl);
45 console.log('tabs onLoadComplete 1');
44 var focused = evt.target.find({state: {focused: true}}) || evt.target; 46 var focused = evt.target.find({state: {focused: true}}) || evt.target;
47 console.log('tabs onLoadComplete 2');
45 this.onFocus({target: focused, type: EventType.focus}); 48 this.onFocus({target: focused, type: EventType.focus});
49 console.log('tabs onLoadComplete 3');
46 } 50 }
47 }; 51 };
48 52
49 }); // goog.scope 53 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698