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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 7610014: [ntp4] Bookmarks page implementation, first-pass. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Final review tweaks, rebase. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp4/new_tab.js
===================================================================
--- chrome/browser/resources/ntp4/new_tab.js (revision 96850)
+++ chrome/browser/resources/ntp4/new_tab.js (working copy)
@@ -206,7 +206,7 @@
bookmarksPage = new ntp4.BookmarksPage();
appendTilePage(bookmarksPage, localStrings.getString('bookmarksPage'));
- chrome.send('getBookmarks');
+ chrome.send('getBookmarksData');
}
/**
@@ -688,6 +688,10 @@
mostVisitedPage.data = data;
}
+ function setBookmarksData(data) {
+ bookmarksPage.data = data;
+ }
+
/**
* Check the directionality of the page.
* @return {boolean} True if Chrome is running an RTL UI.
@@ -710,22 +714,23 @@
// Return an object with all the exports
return {
- assert: assert,
appAdded: appAdded,
appRemoved: appRemoved,
appsPrefChangeCallback: appsPrefChangeCallback,
+ assert: assert,
enterRearrangeMode: enterRearrangeMode,
getAppsCallback: getAppsCallback,
+ getAppsPageIndex: getAppsPageIndex,
getCardSlider: getCardSlider,
- getAppsPageIndex: getAppsPageIndex,
initialize: initialize,
isRTL: isRTL,
leaveRearrangeMode: leaveRearrangeMode,
- themeChanged: themeChanged,
+ saveAppPageName: saveAppPageName,
+ setBookmarksData: setBookmarksData,
+ setMostVisitedPages: setMostVisitedPages,
setRecentlyClosedTabs: setRecentlyClosedTabs,
- setMostVisitedPages: setMostVisitedPages,
showNotification: showNotification,
- saveAppPageName: saveAppPageName
+ themeChanged: themeChanged
};
});

Powered by Google App Engine
This is Rietveld 408576698