Commit f5cda897 authored by Sophie Yang's avatar Sophie Yang Committed by Commit Bot

[Switch Access] Removed duplicate variable

Removed duplicate variable menuOriginNode
that likely appeared after a merge.

Bug: 982004
Change-Id: I857049cda8387b9e5d40189d1ed9afec49156e63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773213Reviewed-by: default avatarAnastasia Helfinstein <anastasi@google.com>
Reviewed-by: default avatarAkihiro Ota <akihiroota@chromium.org>
Commit-Queue: Sophie Yang <sophyang@google.com>
Cr-Commit-Position: refs/heads/master@{#690936}
parent a0464f29
......@@ -50,17 +50,12 @@ class MenuManager {
this.node_;
/**
* The node that the menu has been opened for.
* The node that the menu has been opened for. Null if the menu is not
* currently open.
* @private {chrome.automation.AutomationNode}
*/
this.menuOriginNode_;
/**
* The node that the menu has been opened for.
* @private {!chrome.automation.AutomationNode}
*/
this.menuOriginNode_ = desktop;
/**
* Keeps track of when we're in the Switch Access menu.
* @private {boolean}
......@@ -152,6 +147,8 @@ class MenuManager {
chrome.automation.EventType.TEXT_SELECTION_CHANGED,
this.onSelectionChanged_.bind(this), false /** Don't use capture. */);
}
this.menuOriginNode_ = null;
chrome.accessibilityPrivate.setSwitchAccessMenuState(
false /** Hide the menu. */, SAConstants.EMPTY_LOCATION, 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment