OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.bookmarks; | 5 package org.chromium.chrome.browser.bookmarks; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.graphics.drawable.Drawable; | 9 import android.graphics.drawable.Drawable; |
10 import android.os.Bundle; | 10 import android.os.Bundle; |
(...skipping 15 matching lines...) Expand all Loading... |
26 import org.chromium.chrome.browser.widget.TintedDrawable; | 26 import org.chromium.chrome.browser.widget.TintedDrawable; |
27 import org.chromium.components.bookmarks.BookmarkId; | 27 import org.chromium.components.bookmarks.BookmarkId; |
28 | 28 |
29 import java.util.ArrayList; | 29 import java.util.ArrayList; |
30 import java.util.List; | 30 import java.util.List; |
31 | 31 |
32 /** | 32 /** |
33 * Dialog for moving bookmarks from one folder to another. A list of folders are
shown and the | 33 * Dialog for moving bookmarks from one folder to another. A list of folders are
shown and the |
34 * hierarchy of bookmark model is presented by indentation of list items. This d
ialog can be shown | 34 * hierarchy of bookmark model is presented by indentation of list items. This d
ialog can be shown |
35 * in two cases. One is when user choose to move an existing bookmark to a new f
older. The other is | 35 * in two cases. One is when user choose to move an existing bookmark to a new f
older. The other is |
36 * when user creates a new folder/bookmark, he/she can choose which parent the n
ew folder/bookmark | 36 * when user creates a new folder/bookmark, they can choose which parent the new
folder/bookmark |
37 * belong to. | 37 * belong to. |
38 * <p> | 38 * <p> |
39 * Note this fragment will not be restarted by OS. It will be dismissed if chrom
e is killed in | 39 * Note this fragment will not be restarted by OS. It will be dismissed if chrom
e is killed in |
40 * background. | 40 * background. |
41 */ | 41 */ |
42 public class BookmarkFolderSelectActivity extends SynchronousInitializationActiv
ity implements | 42 public class BookmarkFolderSelectActivity extends SynchronousInitializationActiv
ity implements |
43 AdapterView.OnItemClickListener { | 43 AdapterView.OnItemClickListener { |
44 static final String | 44 static final String |
45 INTENT_SELECTED_FOLDER = "BookmarkFolderSelectActivity.selectedFolde
r"; | 45 INTENT_SELECTED_FOLDER = "BookmarkFolderSelectActivity.selectedFolde
r"; |
46 static final String | 46 static final String |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 * Sets up padding for the entry | 350 * Sets up padding for the entry |
351 */ | 351 */ |
352 private void setUpPadding(FolderListEntry entry, TextView textView) { | 352 private void setUpPadding(FolderListEntry entry, TextView textView) { |
353 int paddingStart = mBasePadding + Math.min(entry.mDepth, MAX_FOLDER_
DEPTH) | 353 int paddingStart = mBasePadding + Math.min(entry.mDepth, MAX_FOLDER_
DEPTH) |
354 * mPaddingIncrement; | 354 * mPaddingIncrement; |
355 ApiCompatibilityUtils.setPaddingRelative(textView, paddingStart, 0, | 355 ApiCompatibilityUtils.setPaddingRelative(textView, paddingStart, 0, |
356 mBasePadding, 0); | 356 mBasePadding, 0); |
357 } | 357 } |
358 } | 358 } |
359 } | 359 } |
OLD | NEW |