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

Side by Side Diff: chrome/browser/resources/print_preview/search/destination_search.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
Patch Set: Created 6 years, 3 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 * Component used for searching for a print destination. 9 * Component used for searching for a print destination.
10 * This is a modal dialog that allows the user to search and select a 10 * This is a modal dialog that allows the user to search and select a
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 localStrings.getString('accountSelectTitle'); 249 localStrings.getString('accountSelectTitle');
250 }, 250 },
251 251
252 /** 252 /**
253 * @return {number} Height available for destination lists, in pixels. 253 * @return {number} Height available for destination lists, in pixels.
254 * @private 254 * @private
255 */ 255 */
256 getAvailableListsHeight_: function() { 256 getAvailableListsHeight_: function() {
257 var elStyle = window.getComputedStyle(this.getElement()); 257 var elStyle = window.getComputedStyle(this.getElement());
258 return this.getElement().offsetHeight - 258 return this.getElement().offsetHeight -
259 parseInt(elStyle.getPropertyValue('padding-top')) - 259 parseInt(elStyle.getPropertyValue('padding-top'), 10) -
260 parseInt(elStyle.getPropertyValue('padding-bottom')) - 260 parseInt(elStyle.getPropertyValue('padding-bottom'), 10) -
261 this.getChildElement('.lists').offsetTop - 261 this.getChildElement('.lists').offsetTop -
262 this.getChildElement('.cloudprint-promo').offsetHeight; 262 this.getChildElement('.cloudprint-promo').offsetHeight;
263 }, 263 },
264 264
265 /** 265 /**
266 * Filters all destination lists with the given query. 266 * Filters all destination lists with the given query.
267 * @param {RegExp} query Query to filter destination lists by. 267 * @param {RegExp} query Query to filter destination lists by.
268 * @private 268 * @private
269 */ 269 */
270 filterLists_: function(query) { 270 filterLists_: function(query) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 onWindowResize_: function() { 580 onWindowResize_: function() {
581 this.reflowLists_(); 581 this.reflowLists_();
582 } 582 }
583 }; 583 };
584 584
585 // Export 585 // Export
586 return { 586 return {
587 DestinationSearch: DestinationSearch 587 DestinationSearch: DestinationSearch
588 }; 588 };
589 }); 589 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698