Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / chromeos / chromevox / chromevox / injected / externs.js
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
3 // found in the LICENSE file.
4
5 Node.prototype.role;
6
7 /**
8  * @type {boolean}
9  */
10 document.webkitHidden;
11
12 /**
13  * External functions for MathJax bridge.
14  * @typedef {Object}
15  */
16 function MathJax() {}
17
18 /**
19  * @type {Function}
20  */
21 MathJax.Callback;
22
23 /**
24  * @param {Array.<*>} args
25  * @param {string} err
26  */
27 MathJax.Callback.After = function(args, err) { };
28
29
30 /**
31  * @typedef {{root: MathJax.RootElement,
32  *  inputID: string}}
33  */
34 MathJax.Jax;
35
36
37 /**
38  * @typedef {{inputID: string,
39  *  spanID: number,
40  *  data: Array.<Object>,
41  *  id: string,
42  *  texClass: string}}
43  */
44 MathJax.RootElement;
45 MathJax.RootElement.prototype;
46
47 /**
48  * @param {string} name
49  */
50 MathJax.RootElement.prototype.toMathML = function(name) { };
51
52 /**
53  */
54 MathJax.RootElement.prototype.toMathMLattributes = function() { };
55
56
57 /**
58  * @typedef {Object}
59  */
60 MathJax.Hub;
61
62 /**
63  * @param {string} id
64  */
65 MathJax.Hub.getJaxFor = function(id) { };
66
67 /**
68  */
69 MathJax.Hub.getAllJax = function() { };
70
71 /**
72  * @type {{PreProcessor: Function,
73  *  MessageHook: function(string, function(Array.<string>)):
74  *                        function(Array.<string>),
75  *  StartupHook: function(string, function(Array.<string>)):
76  *                        function(Array.<string>),
77  *  LoadHook: function(string, function(Array.<string>)):
78  *                        function(Array.<string>)}}
79  */
80 MathJax.Hub.Register;
81
82
83 /**
84  * @typedef {Object}
85  */
86 MathJax.OutputJax;
87
88
89 /**
90  * @typedef {Object}
91  */
92 MathJax.ElementJax;
93 MathJax.ElementJax.prototype.mml;
94
95 /**
96  * @param {?string} mml MathML expression.
97  */
98 MathJax.ElementJax.mml = function(mml) { };
99
100
101 /**
102  * @type {MathJax.RootElement}
103  */
104 MathJax.ElementJax.mml.mbase;
105 MathJax.ElementJax.mml.mbase.prototype;
106
107
108 /**
109  * @type {MathJax.RootElement}
110  */
111 MathJax.ElementJax.mml.mfenced;
112 MathJax.ElementJax.mml.mfenced.prototype;
113
114
115 /**
116  * @param {string} err
117  */
118 MathJax.ElementJax.mml.merror = function(err) { };
119
120
121 /**
122  * @type {{DOUBLESTRUCK: string,
123  *         NORMAL: string}}
124  */
125 MathJax.ElementJax.mml.VARIANT;
126
127
128 /**
129  * @type {{OP: number}}
130  */
131 MathJax.ElementJax.mml.TEXCLASS;
132
133
134 /**
135  * @typedef {Object}
136  */
137 MathJax.InputJax;
138
139
140 /**
141  * @typedef {Object}
142  */
143 MathJax.HTML;
144
145
146 /**
147  * Creates an HTML element from a node tag, an object with attributes and an
148  * array of text content.
149  * @param {string} tag
150  * @param {Object.<string, string>} attribs
151  * @param {Array.<string>} text
152  */
153 MathJax.HTML.Element = function(tag, attribs, text) { };
154
155
156 /**
157  * @type {{Parse: function(string): MathJax.ElementJax,
158  * postfilterHooks: {Execute:
159  *   function({math: MathJax.RootElement, display: boolean, script: Element})},
160  * prefilterHooks: {Execute:
161  *   function({math: string, display: boolean, script: Element})},
162  * Definitions: Object}}
163  */
164 MathJax.InputJax.TeX;
165
166
167 /**
168  * MediaWiki object.
169  * @typedef {Object}
170  */
171 function mediaWiki() {}