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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/interface/mathjax_interface.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 Interface of ChromeVox's bridge to MathJax. 6 * @fileoverview Interface of ChromeVox's bridge to MathJax.
7 * 7 *
8 */ 8 */
9 9
10 goog.provide('cvox.MathJaxInterface'); 10 goog.provide('cvox.MathJaxInterface');
11 11
12 12
13 /** 13 /**
14 * @interface 14 * @interface
15 */ 15 */
16 cvox.MathJaxInterface = function() { }; 16 cvox.MathJaxInterface = function() {};
17 17
18 18
19 /** 19 /**
20 * True if MathJax is injected in a page. 20 * True if MathJax is injected in a page.
21 * @param {function(boolean)} callback A function with the active status as 21 * @param {function(boolean)} callback A function with the active status as
22 * argument. 22 * argument.
23 */ 23 */
24 cvox.MathJaxInterface.prototype.isMathjaxActive = function(callback) { }; 24 cvox.MathJaxInterface.prototype.isMathjaxActive = function(callback) {};
25 25
26 26
27 /** 27 /**
28 * Get MathML for all MathJax nodes that already exist by applying the callback 28 * Get MathML for all MathJax nodes that already exist by applying the callback
29 * to every single MathJax node. 29 * to every single MathJax node.
30 * @param {function(Node, string)} callback A function taking a node and an id 30 * @param {function(Node, string)} callback A function taking a node and an id
31 * string. 31 * string.
32 */ 32 */
33 cvox.MathJaxInterface.prototype.getAllJax = function(callback) { }; 33 cvox.MathJaxInterface.prototype.getAllJax = function(callback) {};
34 34
35 35
36 /** 36 /**
37 * Registers a persistent callback function to be executed by Mathjax on the 37 * Registers a persistent callback function to be executed by Mathjax on the
38 * given signal. 38 * given signal.
39 * @param {function(Node, string)} callback A function taking a node and an id 39 * @param {function(Node, string)} callback A function taking a node and an id
40 * string. 40 * string.
41 * @param {string} signal The Mathjax signal to fire the callback. 41 * @param {string} signal The Mathjax signal to fire the callback.
42 */ 42 */
43 cvox.MathJaxInterface.prototype.registerSignal = function(callback, signal) { }; 43 cvox.MathJaxInterface.prototype.registerSignal = function(callback, signal) {};
44 44
45 45
46 /** 46 /**
47 * Injects some minimalistic MathJax script into the page to translate LaTeX 47 * Injects some minimalistic MathJax script into the page to translate LaTeX
48 * expressions. 48 * expressions.
49 */ 49 */
50 cvox.MathJaxInterface.prototype.injectScripts = function() { }; 50 cvox.MathJaxInterface.prototype.injectScripts = function() {};
51 51
52 52
53 /** 53 /**
54 * Loads configurations for MediaWiki pages (e.g., Wikipedia). 54 * Loads configurations for MediaWiki pages (e.g., Wikipedia).
55 */ 55 */
56 cvox.MathJaxInterface.prototype.configMediaWiki = function() { }; 56 cvox.MathJaxInterface.prototype.configMediaWiki = function() {};
57 57
58 58
59 /** 59 /**
60 * Get MathML representation of images with tex or latex class if it has an 60 * Get MathML representation of images with tex or latex class if it has an
61 * alt text or title. 61 * alt text or title.
62 * @param {function(Node, string)} callback A function taking a MathML node and 62 * @param {function(Node, string)} callback A function taking a MathML node and
63 * an id string. 63 * an id string.
64 * @param {Node} texNode Node with img tag and tex or latex class. 64 * @param {Node} texNode Node with img tag and tex or latex class.
65 */ 65 */
66 cvox.MathJaxInterface.prototype.getTex = function(callback, texNode) { }; 66 cvox.MathJaxInterface.prototype.getTex = function(callback, texNode) {};
67 67
68 68
69 /** 69 /**
70 * Get MathML representation of images that have asciiMath in alt text. 70 * Get MathML representation of images that have asciiMath in alt text.
71 * @param {function(Node, string)} callback A function taking a MathML node and 71 * @param {function(Node, string)} callback A function taking a MathML node and
72 * an id string. 72 * an id string.
73 * @param {Node} asciiMathNode Node with img tag and class of numberedequation, 73 * @param {Node} asciiMathNode Node with img tag and class of numberedequation,
74 * inlineformula, or displayformula. 74 * inlineformula, or displayformula.
75 */ 75 */
76 cvox.MathJaxInterface.prototype.getAsciiMath = function( 76 cvox.MathJaxInterface.prototype.getAsciiMath = function(
77 callback, asciiMathNode) { }; 77 callback, asciiMathNode) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698