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

Side by Side Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 7658007: ntp4: tweak the minimum size we're willing to show most visited tiles at (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also for apps Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/most_visited_page.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 (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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/most_visited_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698