Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java |
| index d78d9e92896844ffbad31a29bce09af305f652d0..1cf4f2d031ee08413eea70f30f29bcd786f5eefd 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java |
| @@ -14,6 +14,8 @@ import android.view.View; |
| import android.view.inputmethod.EditorInfo; |
| import android.view.inputmethod.InputConnection; |
| +import org.chromium.chrome.browser.ntp.NewTabPageLayout; |
| + |
| /** |
| * Simple wrapper on top of a RecyclerView that will acquire focus when tapped. Ensures the |
| * New Tab page receives focus when clicked. |
| @@ -21,6 +23,7 @@ import android.view.inputmethod.InputConnection; |
| public class NewTabPageRecyclerView extends RecyclerView { |
| private GestureDetector mGestureDetector; |
| private LinearLayoutManager mLayoutManager; |
| + private NewTabPageLayout mNewTabPageLayout; |
|
PEConn
2016/05/05 16:17:47
Do we ever read this?
mcwilliams
2016/05/05 17:39:47
Done.
|
| /** |
| * Constructor needed to inflate from XML. |
| @@ -74,4 +77,12 @@ public class NewTabPageRecyclerView extends RecyclerView { |
| outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN; |
| return super.onCreateInputConnection(outAttrs); |
| } |
| + |
| + public void setNewTabPageLayout(NewTabPageLayout newTabPageLayout) { |
|
May
2016/05/05 16:28:22
Don't think we need this anymore
mcwilliams
2016/05/05 17:39:47
Done.
|
| + mNewTabPageLayout = newTabPageLayout; |
| + } |
| + |
| + public LinearLayoutManager getLinearLayoutManager() { |
| + return mLayoutManager; |
| + } |
| } |