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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js
index dcd02a869de939256398b88220af43e1f75b3390..40e3fea065494ed8d0d998379d9385e3d6abddf6 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/widget.js
@@ -80,18 +80,17 @@ cvox.Widget.prototype.show = function() {
window.addEventListener('keydown', this.onKeyDown, true);
window.addEventListener('keypress', this.onKeyPress, true);
- this.initialNode =
- cvox.ChromeVox.navigationManager.getCurrentNode();
+ this.initialNode = cvox.ChromeVox.navigationManager.getCurrentNode();
this.initialFocus = document.activeElement;
// Widgets do not respond to sticky key.
cvox.ChromeVox.stickyOverride = false;
if (this.getNameMsg() && this.getHelpMsg()) {
- cvox.$m(this.getNameMsg()).
- andPause().
- andMessage(this.getHelpMsg()).
- speakFlush();
+ cvox.$m(this.getNameMsg())
+ .andPause()
+ .andMessage(this.getHelpMsg())
+ .speakFlush();
}
cvox.ChromeVox.earcons.playEarcon(cvox.Earcon.OBJECT_OPEN);
@@ -113,10 +112,10 @@ cvox.Widget.prototype.hide = function(opt_noSync) {
cvox.ChromeVox.earcons.playEarcon(cvox.Earcon.OBJECT_CLOSE);
if (!opt_noSync) {
this.initialNode = this.initialNode.nodeType == 1 ?
- this.initialNode : this.initialNode.parentNode;
- cvox.ChromeVox.navigationManager.syncToNode(this.initialNode,
- true,
- cvox.QueueMode.QUEUE);
+ this.initialNode :
+ this.initialNode.parentNode;
+ cvox.ChromeVox.navigationManager.syncToNode(
+ this.initialNode, true, cvox.QueueMode.QUEUE);
}
this.active = false;
@@ -160,11 +159,11 @@ cvox.Widget.prototype.getHelpMsg = goog.abstractMethod;
* @protected
*/
cvox.Widget.prototype.onKeyDown = function(evt) {
- if (evt.keyCode == 27) { // Escape
+ if (evt.keyCode == 27) { // Escape
this.hide();
evt.preventDefault();
return true;
- } else if (evt.keyCode == 9) { // Tab
+ } else if (evt.keyCode == 9) { // Tab
this.hide();
return true;
} else if (evt.keyCode == 17) {

Powered by Google App Engine
This is Rietveld 408576698