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

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

Issue 7846006: ntp4: sprucing up bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/bookmarks_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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 var appsPageGridValues = { 539 var appsPageGridValues = {
540 // The fewest tiles we will show in a row. 540 // The fewest tiles we will show in a row.
541 minColCount: 3, 541 minColCount: 3,
542 // The most tiles we will show in a row. 542 // The most tiles we will show in a row.
543 maxColCount: 6, 543 maxColCount: 6,
544 544
545 // The smallest a tile can be. 545 // The smallest a tile can be.
546 minTileWidth: 64 / APP_IMG_SIZE_FRACTION, 546 minTileWidth: 64 / APP_IMG_SIZE_FRACTION,
547 // The biggest a tile can be. 547 // The biggest a tile can be.
548 maxTileWidth: 128 / APP_IMG_SIZE_FRACTION, 548 maxTileWidth: 128 / APP_IMG_SIZE_FRACTION,
549
550 // The padding between tiles, as a fraction of the tile width.
551 tileSpacingFraction: 1 / 8,
549 }; 552 };
550 TilePage.initGridValues(appsPageGridValues); 553 TilePage.initGridValues(appsPageGridValues);
551 554
552 /** 555 /**
553 * Creates a new AppsPage object. 556 * Creates a new AppsPage object.
554 * @constructor 557 * @constructor
555 * @extends {TilePage} 558 * @extends {TilePage}
556 */ 559 */
557 function AppsPage() { 560 function AppsPage() {
558 var el = new TilePage(appsPageGridValues); 561 var el = new TilePage(appsPageGridValues);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 appsPrefChangeCallback: appsPrefChangeCallback, 752 appsPrefChangeCallback: appsPrefChangeCallback,
750 launchAppAfterEnable: launchAppAfterEnable, 753 launchAppAfterEnable: launchAppAfterEnable,
751 }; 754 };
752 }); 755 });
753 756
754 // TODO(estade): update the content handlers to use ntp namespace instead of 757 // TODO(estade): update the content handlers to use ntp namespace instead of
755 // making these global. 758 // making these global.
756 var appNotificationChanged = ntp4.appNotificationChanged; 759 var appNotificationChanged = ntp4.appNotificationChanged;
757 var appsPrefChangeCallback = ntp4.appsPrefChangeCallback; 760 var appsPrefChangeCallback = ntp4.appsPrefChangeCallback;
758 var launchAppAfterEnable = ntp4.launchAppAfterEnable; 761 var launchAppAfterEnable = ntp4.launchAppAfterEnable;
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/bookmarks_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698