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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java

Issue 2837643002: [Bookmarks] Remove side drawer and introduce root folder view (Closed)
Patch Set: Move is_permanent_node_ check to bookmark_bridge.cc Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java
index 74c59806b5058e12681cbb0fd92e2b1652d09dcc..673f49d8e6855a71f613cb6ae64377856121eb64 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/selection/SelectableListToolbar.java
@@ -69,13 +69,13 @@ public class SelectableListToolbar<E> extends Toolbar implements SelectionObserv
}
/** No navigation button is displayed. **/
- protected static final int NAVIGATION_BUTTON_NONE = 0;
+ public static final int NAVIGATION_BUTTON_NONE = 0;
/** Button to open the DrawerLayout. Only valid if mDrawerLayout is set. **/
- protected static final int NAVIGATION_BUTTON_MENU = 1;
+ public static final int NAVIGATION_BUTTON_MENU = 1;
/** Button to navigate back. This calls {@link #onNavigationBack()}. **/
- protected static final int NAVIGATION_BUTTON_BACK = 2;
+ public static final int NAVIGATION_BUTTON_BACK = 2;
/** Button to clear the selection. **/
- protected static final int NAVIGATION_BUTTON_SELECTION_BACK = 3;
+ public static final int NAVIGATION_BUTTON_SELECTION_BACK = 3;
protected boolean mIsSelectionEnabled;
protected SelectionDelegate<E> mSelectionDelegate;
@@ -550,4 +550,9 @@ public class SelectableListToolbar<E> extends Toolbar implements SelectionObserv
public View getSearchViewForTests() {
return mSearchView;
}
+
+ @VisibleForTesting
+ public int getNavigationButtonForTests() {
+ return mNavigationButton;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698