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

Side by Side Diff: remoting/webapp/base/js/auth_dialog.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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/base/js/application.js ('k') | remoting/webapp/base/js/base.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 (function() { 8 (function() {
9 9
10 'use strict'; 10 'use strict';
(...skipping 30 matching lines...) Expand all
41 * @type {base.Deferred} 41 * @type {base.Deferred}
42 * @private 42 * @private
43 */ 43 */
44 this.onAuthButtonDeferred_ = null; 44 this.onAuthButtonDeferred_ = null;
45 45
46 this.authButton_.addEventListener('click', this.onClick_.bind(this), false); 46 this.authButton_.addEventListener('click', this.onClick_.bind(this), false);
47 remoting.windowShape.addCallback(this); 47 remoting.windowShape.addCallback(this);
48 }; 48 };
49 49
50 /** 50 /**
51 * @param {Array.<{left: number, top: number, width: number, height: number}>} 51 * @param {Array<{left: number, top: number, width: number, height: number}>}
52 * rects List of rectangles. 52 * rects List of rectangles.
53 */ 53 */
54 remoting.AuthDialog.prototype.addToRegion = function(rects) { 54 remoting.AuthDialog.prototype.addToRegion = function(rects) {
55 var rect = 55 var rect =
56 /** @type {ClientRect} */(this.borderElement_.getBoundingClientRect()); 56 /** @type {ClientRect} */(this.borderElement_.getBoundingClientRect());
57 rects.push({left: rect.left, 57 rects.push({left: rect.left,
58 top: rect.top, 58 top: rect.top,
59 width: rect.width, 59 width: rect.width,
60 height: rect.height}); 60 height: rect.height});
61 }; 61 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 */ 95 */
96 remoting.AuthDialog.getInstance = function() { 96 remoting.AuthDialog.getInstance = function() {
97 if (!instance_) { 97 if (!instance_) {
98 var rootElement = document.getElementById('auth-dialog'); 98 var rootElement = document.getElementById('auth-dialog');
99 instance_ = new remoting.AuthDialog(rootElement); 99 instance_ = new remoting.AuthDialog(rootElement);
100 } 100 }
101 return instance_; 101 return instance_;
102 }; 102 };
103 103
104 })(); 104 })();
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/base/js/base.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698