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

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

Issue 7713026: [ntp4] Observe and process bookmark change notifications from the bookmarks data model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review changes; 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 98269)
+++ chrome/browser/resources/ntp4/new_tab.js (working copy)
@@ -736,12 +736,47 @@
chrome.send('saveAppPageName', [name, index]);
}
+ function bookmarkImportBegan() {
+ bookmarksPage.bookmarkImportBegan();
+ };
+
+ function bookmarkImportEnded() {
+ bookmarksPage.bookmarkImportEnded();
+ };
+
+ function bookmarkNodeAdded(id, bookmark) {
+ bookmarksPage.bookmarkNodeAdded(id, bookmark);
+ };
+
+ function bookmarkNodeChanged(id, changeInfo) {
+ bookmarksPage.bookmarkNodeChanged(id, changeInfo);
+ };
+
+ function bookmarkNodeChildrenReordered(id, reorderInfo) {
+ bookmarksPage.bookmarkNodeChildrenReordered(id, reorderInfo);
+ };
+
+ function bookmarkNodeMoved(id, moveInfo) {
+ bookmarksPage.bookmarkNodeMoved(id, moveInfo);
+ };
+
+ function bookmarkNodeRemoved(id, removeInfo) {
+ bookmarksPage.bookmarkNodeRemoved(id, removeInfo);
+ };
+
// Return an object with all the exports
return {
appAdded: appAdded,
appRemoved: appRemoved,
appsPrefChangeCallback: appsPrefChangeCallback,
assert: assert,
+ bookmarkImportBegan: bookmarkImportBegan,
+ bookmarkImportEnded: bookmarkImportEnded,
+ bookmarkNodeAdded: bookmarkNodeAdded,
+ bookmarkNodeChanged: bookmarkNodeChanged,
+ bookmarkNodeChildrenReordered: bookmarkNodeChildrenReordered,
+ bookmarkNodeMoved: bookmarkNodeMoved,
+ bookmarkNodeRemoved: bookmarkNodeRemoved,
enterRearrangeMode: enterRearrangeMode,
getAppsCallback: getAppsCallback,
getAppsPageIndex: getAppsPageIndex,

Powered by Google App Engine
This is Rietveld 408576698