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

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

Issue 8533014: NTP4: Fix crash when re-ordering apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | no next file » | 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 /** 5 /**
6 * @fileoverview New tab page 6 * @fileoverview New tab page
7 * This is the main code for the new tab page used by touch-enabled Chrome 7 * This is the main code for the new tab page used by touch-enabled Chrome
8 * browsers. For now this is still a prototype. 8 * browsers. For now this is still a prototype.
9 */ 9 */
10 10
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 function enterRearrangeMode() { 394 function enterRearrangeMode() {
395 newTabView.enterRearrangeMode(); 395 newTabView.enterRearrangeMode();
396 } 396 }
397 397
398 function getAppsCallback(data) { 398 function getAppsCallback(data) {
399 newTabView.getAppsCallback(data); 399 newTabView.getAppsCallback(data);
400 } 400 }
401 401
402 function getAppsPageIndex(page) { 402 function getAppsPageIndex(page) {
403 newTabView.getAppsPageIndex(page); 403 return newTabView.getAppsPageIndex(page);
404 } 404 }
405 405
406 function getCardSlider() { 406 function getCardSlider() {
407 return newTabView.cardSlider; 407 return newTabView.cardSlider;
408 } 408 }
409 409
410 function leaveRearrangeMode(e) { 410 function leaveRearrangeMode(e) {
411 newTabView.leaveRearrangeMode(e); 411 newTabView.leaveRearrangeMode(e);
412 } 412 }
413 413
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 // TODO(estade): update the content handlers to use ntp namespace instead of 453 // TODO(estade): update the content handlers to use ntp namespace instead of
454 // making these global. 454 // making these global.
455 var getAppsCallback = ntp4.getAppsCallback; 455 var getAppsCallback = ntp4.getAppsCallback;
456 var appsPrefChangeCallback = ntp4.appsPrefChangeCallback; 456 var appsPrefChangeCallback = ntp4.appsPrefChangeCallback;
457 var themeChanged = ntp4.themeChanged; 457 var themeChanged = ntp4.themeChanged;
458 var recentlyClosedTabs = ntp4.setRecentlyClosedTabs; 458 var recentlyClosedTabs = ntp4.setRecentlyClosedTabs;
459 var setMostVisitedPages = ntp4.setMostVisitedPages; 459 var setMostVisitedPages = ntp4.setMostVisitedPages;
460 var updateLogin = ntp4.updateLogin; 460 var updateLogin = ntp4.updateLogin;
461 461
462 document.addEventListener('DOMContentLoaded', ntp4.onLoad); 462 document.addEventListener('DOMContentLoaded', ntp4.onLoad);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698