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

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

Issue 11428075: NTP5: Implementing two rows option for Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NTP5: Implementing two rows option for Apps Created 8 years 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
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('ntp', function() { 5 cr.define('ntp', function() {
6 'use strict'; 6 'use strict';
7 7
8 var Tile = ntp.Tile; 8 var Tile = ntp.Tile;
9 var TilePage = ntp.TilePage; 9 var TilePage = ntp.TilePage;
10 var APP_LAUNCH = ntp.APP_LAUNCH; 10 var APP_LAUNCH = ntp.APP_LAUNCH;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 * @extends {Tile} 571 * @extends {Tile}
572 */ 572 */
573 TileClass: App, 573 TileClass: App,
574 574
575 // The config object should be defined by a TilePage subclass if it 575 // The config object should be defined by a TilePage subclass if it
576 // wants the non-default behavior. 576 // wants the non-default behavior.
577 config: { 577 config: {
578 // The width of a cell. 578 // The width of a cell.
579 cellWidth: 70, 579 cellWidth: 70,
580 // The start margin of a cell (left or right according to text direction). 580 // The start margin of a cell (left or right according to text direction).
581 cellMarginStart: 12, 581 cellMarginStart: 22,
582 // The maximum number of Tiles to be displayed. 582 // The maximum number of Tiles to be displayed.
583 maxTileCount: 20, 583 maxTileCount: 20,
584 // Whether the TilePage content will be scrollable. 584 // Whether the TilePage content will be scrollable.
585 scrollable: true, 585 scrollable: true,
586 }, 586 },
587 587
588 initialize: function() { 588 initialize: function() {
589 TilePage.prototype.initialize.apply(this, arguments); 589 TilePage.prototype.initialize.apply(this, arguments);
590 590
591 this.classList.add('apps-page'); 591 this.classList.add('apps-page');
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 if (app && !app.appData.notifications_disabled) 837 if (app && !app.appData.notifications_disabled)
838 app.setupNotification_(notification); 838 app.setupNotification_(notification);
839 } 839 }
840 840
841 return { 841 return {
842 appNotificationChanged: appNotificationChanged, 842 appNotificationChanged: appNotificationChanged,
843 AppsPage: AppsPage, 843 AppsPage: AppsPage,
844 launchAppAfterEnable: launchAppAfterEnable, 844 launchAppAfterEnable: launchAppAfterEnable,
845 }; 845 };
846 }); 846 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp_search/apps_page.css ('k') | chrome/browser/resources/ntp_search/mock/debug.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698