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

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

Issue 1321823004: Stop processing menuListValueChanged events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 The entry point for all ChromeVox2 related code for the 6 * @fileoverview The entry point for all ChromeVox2 related code for the
7 * background page. 7 * background page.
8 */ 8 */
9 9
10 goog.provide('Background'); 10 goog.provide('Background');
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 * Maps an automation event to its listener. 77 * Maps an automation event to its listener.
78 * @type {!Object<EventType, function(Object) : void>} 78 * @type {!Object<EventType, function(Object) : void>}
79 */ 79 */
80 this.listeners_ = { 80 this.listeners_ = {
81 alert: this.onEventDefault, 81 alert: this.onEventDefault,
82 focus: this.onFocus, 82 focus: this.onFocus,
83 hover: this.onEventDefault, 83 hover: this.onEventDefault,
84 loadComplete: this.onLoadComplete, 84 loadComplete: this.onLoadComplete,
85 menuStart: this.onEventDefault, 85 menuStart: this.onEventDefault,
86 menuEnd: this.onEventDefault, 86 menuEnd: this.onEventDefault,
87 menuListValueChanged: this.onEventDefault,
88 textChanged: this.onTextOrTextSelectionChanged, 87 textChanged: this.onTextOrTextSelectionChanged,
89 textSelectionChanged: this.onTextOrTextSelectionChanged, 88 textSelectionChanged: this.onTextOrTextSelectionChanged,
90 valueChanged: this.onValueChanged 89 valueChanged: this.onValueChanged
91 }; 90 };
92 91
93 chrome.automation.getDesktop(this.onGotDesktop); 92 chrome.automation.getDesktop(this.onGotDesktop);
94 93
95 // Handle messages directed to the Next background page. 94 // Handle messages directed to the Next background page.
96 cvox.ExtensionBridge.addMessageListener(function(msg, port) { 95 cvox.ExtensionBridge.addMessageListener(function(msg, port) {
97 var target = msg['target']; 96 var target = msg['target'];
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 var start = text.getSpanStart(selectionSpan); 738 var start = text.getSpanStart(selectionSpan);
740 actionNode.setSelection(position - start, position - start); 739 actionNode.setSelection(position - start, position - start);
741 } 740 }
742 } 741 }
743 }; 742 };
744 743
745 /** @type {Background} */ 744 /** @type {Background} */
746 global.backgroundObj = new Background(); 745 global.backgroundObj = new Background();
747 746
748 }); // goog.scope 747 }); // goog.scope
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698