OLD | NEW |
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 package org.chromium.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.text.TextUtils; | 7 import android.text.TextUtils; |
8 import android.util.Log; | 8 import android.util.Log; |
9 | 9 |
10 import org.chromium.base.CalledByNative; | 10 import org.chromium.base.CalledByNative; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 nativeGetChildIDs(mNativeBookmarksBridge, | 201 nativeGetChildIDs(mNativeBookmarksBridge, |
202 id.mId, | 202 id.mId, |
203 id.mType, | 203 id.mType, |
204 getFolders, | 204 getFolders, |
205 getBookmarks, | 205 getBookmarks, |
206 result); | 206 result); |
207 return result; | 207 return result; |
208 } | 208 } |
209 | 209 |
210 /** | 210 /** |
211 * @return All bookmark IDs ordered by creation date. | 211 * @return All bookmark IDs ordered by descending creation date. |
212 */ | 212 */ |
213 public List<BookmarkId> getAllBookmarkIDsOrderedByCreationDate() { | 213 public List<BookmarkId> getAllBookmarkIDsOrderedByCreationDate() { |
214 assert mIsNativeBookmarkModelLoaded; | 214 assert mIsNativeBookmarkModelLoaded; |
215 List<BookmarkId> result = new ArrayList<BookmarkId>(); | 215 List<BookmarkId> result = new ArrayList<BookmarkId>(); |
216 nativeGetAllBookmarkIDsOrderedByCreationDate(mNativeBookmarksBridge, res
ult); | 216 nativeGetAllBookmarkIDsOrderedByCreationDate(mNativeBookmarksBridge, res
ult); |
217 return result; | 217 return result; |
218 } | 218 } |
219 | 219 |
220 /** | 220 /** |
221 * Set title of the given bookmark. | 221 * Set title of the given bookmark. |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 case GET_CURRENT_FOLDER_HIERARCHY: | 633 case GET_CURRENT_FOLDER_HIERARCHY: |
634 mHandler.getCurrentFolderHierarchy(mFolderId, mCallback); | 634 mHandler.getCurrentFolderHierarchy(mFolderId, mCallback); |
635 break; | 635 break; |
636 default: | 636 default: |
637 assert false; | 637 assert false; |
638 break; | 638 break; |
639 } | 639 } |
640 } | 640 } |
641 } | 641 } |
642 } | 642 } |
OLD | NEW |