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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.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 unified diff | Download patch
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 Bridge that sends earcon messages from content scripts or 6 * @fileoverview Bridge that sends earcon messages from content scripts or
7 * other pages to the main background page. 7 * other pages to the main background page.
8 * 8 *
9 */ 9 */
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 /** 29 /**
30 * @override 30 * @override
31 */ 31 */
32 cvox.ChromeEarcons.prototype.playEarcon = function(earcon, opt_location) { 32 cvox.ChromeEarcons.prototype.playEarcon = function(earcon, opt_location) {
33 goog.base(this, 'playEarcon', earcon); 33 goog.base(this, 'playEarcon', earcon);
34 if (!cvox.AbstractEarcons.enabled) { 34 if (!cvox.AbstractEarcons.enabled) {
35 return; 35 return;
36 } 36 }
37 37
38 cvox.ExtensionBridge.send({ 38 cvox.ExtensionBridge.send(
39 'target': 'EARCON', 39 {'target': 'EARCON', 'action': 'play', 'earcon': earcon});
40 'action': 'play',
41 'earcon': earcon});
42 }; 40 };
43 41
44 42
45 /** 43 /**
46 * @override 44 * @override
47 */ 45 */
48 cvox.ChromeEarcons.prototype.toggle = function() { 46 cvox.ChromeEarcons.prototype.toggle = function() {
49 goog.base(this, 'toggle'); 47 goog.base(this, 'toggle');
50 cvox.ChromeVox.host.sendToBackgroundPage({ 48 cvox.ChromeVox.host.sendToBackgroundPage({
51 'target': 'Prefs', 49 'target': 'Prefs',
(...skipping 10 matching lines...) Expand all
62 }); 60 });
63 } 61 }
64 return cvox.AbstractEarcons.enabled; 62 return cvox.AbstractEarcons.enabled;
65 }; 63 };
66 64
67 65
68 /** 66 /**
69 * @override 67 * @override
70 */ 68 */
71 cvox.HostFactory.earconsConstructor = cvox.ChromeEarcons; 69 cvox.HostFactory.earconsConstructor = cvox.ChromeEarcons;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698