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

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

Issue 273753002: Implement 3 PIN browser tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR feedbacks Created 6 years, 7 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 | Annotate | Revision Log
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 * @constructor 160 * @constructor
161 * @extends {EventTargetStub} 161 * @extends {EventTargetStub}
162 */ 162 */
163 var MediaSource = function() {} 163 var MediaSource = function() {}
164 164
165 /** 165 /**
166 * @param {string} format 166 * @param {string} format
167 * @return {SourceBuffer} 167 * @return {SourceBuffer}
168 */ 168 */
169 MediaSource.prototype.addSourceBuffer = function(format) {} 169 MediaSource.prototype.addSourceBuffer = function(format) {}
170
171 /**
172 * @constructor
173 * @param {function(function(*), function(*)) : void} init
174 */
175 var Promise = function (init) {};
176
177 /**
178 * @param {function(*) : void} onFulfill
179 * @param {function(*) : void} onReject
180 * @return {Promise}
181 */
182 Promise.prototype.then = function (onFulfill, onReject) {};
183
184 /**
185 * @param {function(*) : void} onReject
186 * @return {Promise}
187 */
188 Promise.prototype['catch'] = function (onReject) {};
189
190 /**
191 * @param {Array.<Promise>} promises
192 * @return {Promise}
193 */
194 Promise.prototype.race = function (promises) {}
195
196 /**
197 * @param {Array.<Promise>} promises
198 * @return {Promise}
199 */
200 Promise.prototype.all = function (promises) {};
201
202 /**
203 * @param {*} reason
204 * @return {Promise}
205 */
206 Promise.reject = function (reason) {};
207
208 /**
209 * @param {*} value
210 * @return {Promise}
211 */
212 Promise.resolve = function (value) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698