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

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

Issue 2092743002: Revert of Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 24 matching lines...) Expand all
35 TabsAutomationHandler.prototype = { 35 TabsAutomationHandler.prototype = {
36 __proto__: DesktopAutomationHandler.prototype, 36 __proto__: DesktopAutomationHandler.prototype,
37 37
38 /** @override */ 38 /** @override */
39 didHandleEvent_: function(evt) { 39 didHandleEvent_: function(evt) {
40 evt.stopPropagation(); 40 evt.stopPropagation();
41 }, 41 },
42 42
43 /** @override */ 43 /** @override */
44 onLoadComplete: function(evt) { 44 onLoadComplete: function(evt) {
45 ChromeVoxState.instance.refreshMode(evt.target);
45 var focused = evt.target.find({state: {focused: true}}) || evt.target; 46 var focused = evt.target.find({state: {focused: true}}) || evt.target;
46 this.onFocus(new chrome.automation.AutomationEvent( 47 this.onFocus(new chrome.automation.AutomationEvent(
47 EventType.focus, focused)); 48 EventType.focus, focused));
48 } 49 }
49 }; 50 };
50 51
51 }); // goog.scope 52 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698