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

Side by Side Diff: remoting/webapp/js_proto/dom_proto.js

Issue 613313002: [Chromoting] Additional prototypes for jscompile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/webapp/js_proto/chrome_proto.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains various hacks needed to inform JSCompiler of various 5 // This file contains various hacks needed to inform JSCompiler of various
6 // WebKit- and Chrome-specific properties and methods. It is used only with 6 // WebKit- and Chrome-specific properties and methods. It is used only with
7 // JSCompiler to verify the type-correctness of our code. 7 // JSCompiler to verify the type-correctness of our code.
8 8
9 /** @type {HTMLElement} */ 9 /** @type {HTMLElement} */
10 Document.prototype.activeElement; 10 Document.prototype.activeElement;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 */ 222 */
223 Promise.reject = function (reason) {}; 223 Promise.reject = function (reason) {};
224 224
225 /** 225 /**
226 * @param {*=} value 226 * @param {*=} value
227 * @return {Promise} 227 * @return {Promise}
228 */ 228 */
229 Promise.resolve = function (value) {}; 229 Promise.resolve = function (value) {};
230 230
231 /** 231 /**
232 * @type {DataTransfer}
233 */
234 Event.prototype.dataTransfer = null;
235
236 /**
232 * @param {string} type 237 * @param {string} type
233 * @param {boolean} canBubble 238 * @param {boolean} canBubble
234 * @param {boolean} cancelable 239 * @param {boolean} cancelable
235 * @param {Window} view 240 * @param {Window} view
236 * @param {number} detail 241 * @param {number} detail
237 * @param {number} screenX 242 * @param {number} screenX
238 * @param {number} screenY 243 * @param {number} screenY
239 * @param {number} clientX 244 * @param {number} clientX
240 * @param {number} clientY 245 * @param {number} clientY
241 * @param {boolean} ctrlKey 246 * @param {boolean} ctrlKey
242 * @param {boolean} altKey 247 * @param {boolean} altKey
243 * @param {boolean} shiftKey 248 * @param {boolean} shiftKey
244 * @param {boolean} metaKey 249 * @param {boolean} metaKey
245 * @param {number} button 250 * @param {number} button
246 * @param {EventTarget} relatedTarget 251 * @param {EventTarget} relatedTarget
247 */ 252 */
248 Event.prototype.initMouseEvent = function( 253 Event.prototype.initMouseEvent = function(
249 type, canBubble, cancelable, view, detail, 254 type, canBubble, cancelable, view, detail,
250 screenX, screenY, clientX, clientY, 255 screenX, screenY, clientX, clientY,
251 ctrlKey, altKey, shiftKey, metaKey, 256 ctrlKey, altKey, shiftKey, metaKey,
252 button, relatedTarget) {}; 257 button, relatedTarget) {};
253 258
254 /** 259 /**
255 * @param {number} begin 260 * @param {number} begin
256 * @param {number=} end 261 * @param {number=} end
257 * @return {ArrayBuffer} 262 * @return {ArrayBuffer}
258 */ 263 */
259 ArrayBuffer.prototype.slice = function(begin, end) {}; 264 ArrayBuffer.prototype.slice = function(begin, end) {};
OLDNEW
« no previous file with comments | « remoting/webapp/js_proto/chrome_proto.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698