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

Side by Side Diff: chrome/browser/resources/print_preview/previewarea/margin_control_container.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
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 cr.define('print_preview', function() { 5 cr.define('print_preview', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * UI component used for setting custom print margins. 9 * UI component used for setting custom print margins.
10 * @param {!print_preview.DocumentInfo} documentInfo Document data model. 10 * @param {!print_preview.DocumentInfo} documentInfo Document data model.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 * Called in response to dragging the margins starting or stopping. True is 55 * Called in response to dragging the margins starting or stopping. True is
56 * passed to the function if the margin is currently being dragged and false 56 * passed to the function if the margin is currently being dragged and false
57 * otherwise. 57 * otherwise.
58 * @type {function(boolean)} 58 * @type {function(boolean)}
59 * @private 59 * @private
60 */ 60 */
61 this.dragChangedCallback_ = dragChangedCallback; 61 this.dragChangedCallback_ = dragChangedCallback;
62 62
63 /** 63 /**
64 * Convenience array that contains all of the margin controls. 64 * Convenience array that contains all of the margin controls.
65 * @type {!Object.< 65 * @type {!Object<
66 * !print_preview.ticket_items.CustomMargins.Orientation, 66 * !print_preview.ticket_items.CustomMargins.Orientation,
67 * !print_preview.MarginControl>} 67 * !print_preview.MarginControl>}
68 * @private 68 * @private
69 */ 69 */
70 this.controls_ = {}; 70 this.controls_ = {};
71 for (var key in print_preview.ticket_items.CustomMargins.Orientation) { 71 for (var key in print_preview.ticket_items.CustomMargins.Orientation) {
72 var orientation = print_preview.ticket_items.CustomMargins.Orientation[ 72 var orientation = print_preview.ticket_items.CustomMargins.Orientation[
73 key]; 73 key];
74 var control = new print_preview.MarginControl(orientation); 74 var control = new print_preview.MarginControl(orientation);
75 this.controls_[orientation] = control; 75 this.controls_[orientation] = control;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 471 }
472 } 472 }
473 } 473 }
474 }; 474 };
475 475
476 // Export 476 // Export
477 return { 477 return {
478 MarginControlContainer: MarginControlContainer 478 MarginControlContainer: MarginControlContainer
479 }; 479 };
480 }); 480 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698