| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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('ntp4', function() { | 5 cr.define('ntp4', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 var localStrings = new LocalStrings; | 8 var localStrings = new LocalStrings; |
| 9 | 9 |
| 10 var APP_LAUNCH = { | 10 var APP_LAUNCH = { |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 // The fraction of the app tile size that the icon uses. | 375 // The fraction of the app tile size that the icon uses. |
| 376 var APP_IMG_SIZE_FRACTION = 4 / 5; | 376 var APP_IMG_SIZE_FRACTION = 4 / 5; |
| 377 | 377 |
| 378 var appsPageGridValues = { | 378 var appsPageGridValues = { |
| 379 // The fewest tiles we will show in a row. | 379 // The fewest tiles we will show in a row. |
| 380 minColCount: 3, | 380 minColCount: 3, |
| 381 // The most tiles we will show in a row. | 381 // The most tiles we will show in a row. |
| 382 maxColCount: 6, | 382 maxColCount: 6, |
| 383 | 383 |
| 384 // The smallest a tile can be. | 384 // The smallest a tile can be. |
| 385 minTileWidth: 96 / APP_IMG_SIZE_FRACTION, | 385 minTileWidth: 64 / APP_IMG_SIZE_FRACTION, |
| 386 // The biggest a tile can be. | 386 // The biggest a tile can be. |
| 387 maxTileWidth: 128 / APP_IMG_SIZE_FRACTION, | 387 maxTileWidth: 128 / APP_IMG_SIZE_FRACTION, |
| 388 }; | 388 }; |
| 389 TilePage.initGridValues(appsPageGridValues); | 389 TilePage.initGridValues(appsPageGridValues); |
| 390 | 390 |
| 391 /** | 391 /** |
| 392 * Creates a new AppsPage object. | 392 * Creates a new AppsPage object. |
| 393 * @constructor | 393 * @constructor |
| 394 * @extends {TilePage} | 394 * @extends {TilePage} |
| 395 */ | 395 */ |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 var store = document.querySelector('.webstore'); | 514 var store = document.querySelector('.webstore'); |
| 515 if (store) | 515 if (store) |
| 516 store.setAppsPromoData(data); | 516 store.setAppsPromoData(data); |
| 517 }; | 517 }; |
| 518 | 518 |
| 519 return { | 519 return { |
| 520 APP_LAUNCH: APP_LAUNCH, | 520 APP_LAUNCH: APP_LAUNCH, |
| 521 AppsPage: AppsPage, | 521 AppsPage: AppsPage, |
| 522 }; | 522 }; |
| 523 }); | 523 }); |
| OLD | NEW |