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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_drag_drop.cc

Issue 22855011: Added date_added and folder_modification_time to BookmarkNodeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang and android compile errors. Created 7 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/bookmarks/bookmark_drag_drop.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_drag_drop.h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_model.h" 7 #include "chrome/browser/bookmarks/bookmark_model.h"
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
9 #include "chrome/browser/bookmarks/bookmark_node_data.h" 9 #include "chrome/browser/bookmarks/bookmark_node_data.h"
10 #include "chrome/browser/bookmarks/bookmark_utils.h" 10 #include "chrome/browser/bookmarks/bookmark_utils.h"
(...skipping 13 matching lines...) Expand all
24 // Drag from same profile. Move nodes. 24 // Drag from same profile. Move nodes.
25 for (size_t i = 0; i < dragged_nodes.size(); ++i) { 25 for (size_t i = 0; i < dragged_nodes.size(); ++i) {
26 model->Move(dragged_nodes[i], parent_node, index); 26 model->Move(dragged_nodes[i], parent_node, index);
27 index = parent_node->GetIndexOf(dragged_nodes[i]) + 1; 27 index = parent_node->GetIndexOf(dragged_nodes[i]) + 1;
28 } 28 }
29 return ui::DragDropTypes::DRAG_MOVE; 29 return ui::DragDropTypes::DRAG_MOVE;
30 } 30 }
31 return ui::DragDropTypes::DRAG_NONE; 31 return ui::DragDropTypes::DRAG_NONE;
32 } 32 }
33 // Dropping a folder from different profile. Always accept. 33 // Dropping a folder from different profile. Always accept.
34 bookmark_utils::CloneBookmarkNode(model, data.elements, parent_node, index); 34 bookmark_utils::CloneBookmarkNode(model, data.elements, parent_node,
35 index, true);
35 return ui::DragDropTypes::DRAG_COPY; 36 return ui::DragDropTypes::DRAG_COPY;
36 } 37 }
37 38
38 } // namespace chrome 39 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698