| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 // Sorts the children of |parent|, notifying observers by way of the | 368 // Sorts the children of |parent|, notifying observers by way of the |
| 369 // BookmarkNodeChildrenReordered method. | 369 // BookmarkNodeChildrenReordered method. |
| 370 void SortChildren(const BookmarkNode* parent); | 370 void SortChildren(const BookmarkNode* parent); |
| 371 | 371 |
| 372 // Order the children of |parent| as specified in |ordered_nodes|. This | 372 // Order the children of |parent| as specified in |ordered_nodes|. This |
| 373 // function should only be used to reorder the child nodes of |parent| and | 373 // function should only be used to reorder the child nodes of |parent| and |
| 374 // is not meant to move nodes between different parent. Notifies observers | 374 // is not meant to move nodes between different parent. Notifies observers |
| 375 // using the BookmarkNodeChildrenReordered method. | 375 // using the BookmarkNodeChildrenReordered method. |
| 376 void ReorderChildren(const BookmarkNode* parent, | 376 void ReorderChildren(const BookmarkNode* parent, |
| 377 const std::vector<BookmarkNode*>& ordered_nodes); | 377 const std::vector<const BookmarkNode*>& ordered_nodes); |
| 378 | 378 |
| 379 // Sets the date when the folder was modified. | 379 // Sets the date when the folder was modified. |
| 380 void SetDateFolderModified(const BookmarkNode* node, const base::Time time); | 380 void SetDateFolderModified(const BookmarkNode* node, const base::Time time); |
| 381 | 381 |
| 382 // Resets the 'date modified' time of the node to 0. This is used during | 382 // Resets the 'date modified' time of the node to 0. This is used during |
| 383 // importing to exclude the newly created folders from showing up in the | 383 // importing to exclude the newly created folders from showing up in the |
| 384 // combobox of most recently modified folders. | 384 // combobox of most recently modified folders. |
| 385 void ResetDateFolderModified(const BookmarkNode* node); | 385 void ResetDateFolderModified(const BookmarkNode* node); |
| 386 | 386 |
| 387 void GetBookmarksWithTitlesMatching( | 387 void GetBookmarksWithTitlesMatching( |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 547 |
| 548 // See description of IsDoingExtensiveChanges above. | 548 // See description of IsDoingExtensiveChanges above. |
| 549 int extensive_changes_; | 549 int extensive_changes_; |
| 550 | 550 |
| 551 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; | 551 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
| 552 | 552 |
| 553 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 553 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
| 554 }; | 554 }; |
| 555 | 555 |
| 556 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 556 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
| OLD | NEW |