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

Side by Side Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 684143005: bmm: swap reversed commands to make "Add new folder..." work correctly again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« 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) 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 (function() { 5 (function() {
6 /** @const */ var BookmarkList = bmm.BookmarkList; 6 /** @const */ var BookmarkList = bmm.BookmarkList;
7 /** @const */ var BookmarkTree = bmm.BookmarkTree; 7 /** @const */ var BookmarkTree = bmm.BookmarkTree;
8 /** @const */ var Command = cr.ui.Command; 8 /** @const */ var Command = cr.ui.Command;
9 /** @const */ var LinkKind = cr.LinkKind; 9 /** @const */ var LinkKind = cr.LinkKind;
10 /** @const */ var ListItem = cr.ui.ListItem; 10 /** @const */ var ListItem = cr.ui.ListItem;
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 1326
1327 case 'rename-folder-from-folders-menu-command': 1327 case 'rename-folder-from-folders-menu-command':
1328 bmm.tree.selectedItem.editing = true; 1328 bmm.tree.selectedItem.editing = true;
1329 break; 1329 break;
1330 1330
1331 case 'edit-command': 1331 case 'edit-command':
1332 recordUserAction('Edit'); 1332 recordUserAction('Edit');
1333 editSelectedItem(); 1333 editSelectedItem();
1334 break; 1334 break;
1335 1335
1336 case 'new-folder-from-folders-menu-command':
1337 target = bmm.tree;
1336 case 'new-folder-command': 1338 case 'new-folder-command':
1337 target = bmm.tree;
1338 case 'new-folder-from-folders-menu-command':
1339 recordUserAction('NewFolder'); 1339 recordUserAction('NewFolder');
1340 newFolder(target); 1340 newFolder(target);
1341 break; 1341 break;
1342 1342
1343 case 'add-new-bookmark-command': 1343 case 'add-new-bookmark-command':
1344 recordUserAction('AddPage'); 1344 recordUserAction('AddPage');
1345 addPage(); 1345 addPage();
1346 break; 1346 break;
1347 1347
1348 case 'open-in-same-window-command': 1348 case 'open-in-same-window-command':
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 1491
1492 cr.ui.FocusOutlineManager.forDocument(document); 1492 cr.ui.FocusOutlineManager.forDocument(document);
1493 initializeSplitter(); 1493 initializeSplitter();
1494 bmm.addBookmarkModelListeners(); 1494 bmm.addBookmarkModelListeners();
1495 dnd.init(selectItemsAfterUserAction); 1495 dnd.init(selectItemsAfterUserAction);
1496 bmm.tree.reload(); 1496 bmm.tree.reload();
1497 } 1497 }
1498 1498
1499 initializeBookmarkManager(); 1499 initializeBookmarkManager();
1500 })(); 1500 })();
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