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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_globals.js

Issue 593133002: Refactor: remove a Chromevox abstract class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 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
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 Initializes the injected content script. 6 * @fileoverview Initializes the injected content script.
7 * 7 *
8 */ 8 */
9 9
10 goog.provide('cvox.InitGlobals'); 10 goog.provide('cvox.InitGlobals');
(...skipping 28 matching lines...) Expand all
39 .add(cvox.HostFactory.getTts()) 39 .add(cvox.HostFactory.getTts())
40 .add(cvox.History.getInstance()) 40 .add(cvox.History.getInstance())
41 .add(cvox.ConsoleTts.getInstance()); 41 .add(cvox.ConsoleTts.getInstance());
42 42
43 if (!cvox.ChromeVox.braille) { 43 if (!cvox.ChromeVox.braille) {
44 cvox.ChromeVox.braille = cvox.HostFactory.getBraille(); 44 cvox.ChromeVox.braille = cvox.HostFactory.getBraille();
45 } 45 }
46 cvox.ChromeVox.mathJax = cvox.HostFactory.getMathJax(); 46 cvox.ChromeVox.mathJax = cvox.HostFactory.getMathJax();
47 47
48 cvox.ChromeVox.earcons = cvox.HostFactory.getEarcons(); 48 cvox.ChromeVox.earcons = cvox.HostFactory.getEarcons();
49 cvox.ChromeVox.msgs = cvox.HostFactory.getMsgs(); 49 cvox.ChromeVox.msgs = new cvox.Msgs();
50 cvox.ChromeVox.isActive = true; 50 cvox.ChromeVox.isActive = true;
51 cvox.ChromeVox.navigationManager = new cvox.NavigationManager(); 51 cvox.ChromeVox.navigationManager = new cvox.NavigationManager();
52 cvox.ChromeVox.navigationManager.updateIndicator(); 52 cvox.ChromeVox.navigationManager.updateIndicator();
53 cvox.ChromeVox.syncToNode = cvox.ApiImplementation.syncToNode; 53 cvox.ChromeVox.syncToNode = cvox.ApiImplementation.syncToNode;
54 cvox.ChromeVox.speakNode = cvox.ApiImplementation.speakNode; 54 cvox.ChromeVox.speakNode = cvox.ApiImplementation.speakNode;
55 55
56 cvox.ChromeVox.serializer = new cvox.Serializer(); 56 cvox.ChromeVox.serializer = new cvox.Serializer();
57 57
58 // Do platform specific initialization here. 58 // Do platform specific initialization here.
59 cvox.ChromeVox.host.init(); 59 cvox.ChromeVox.host.init();
60 60
61 // Start the event watchers 61 // Start the event watchers
62 cvox.ChromeVoxEventWatcher.init(window); 62 cvox.ChromeVoxEventWatcher.init(window);
63 63
64 // Provide a way for modules that can't depend on cvox.ChromeVoxUserCommands 64 // Provide a way for modules that can't depend on cvox.ChromeVoxUserCommands
65 // to execute commands. 65 // to execute commands.
66 cvox.ChromeVox.executeUserCommand = function(commandName) { 66 cvox.ChromeVox.executeUserCommand = function(commandName) {
67 cvox.ChromeVoxUserCommands.commands[commandName](); 67 cvox.ChromeVoxUserCommands.commands[commandName]();
68 }; 68 };
69 69
70 cvox.ChromeVox.host.onPageLoad(); 70 cvox.ChromeVox.host.onPageLoad();
71 }; 71 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698