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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java

Issue 1459593002: Added a UI for the Interests Prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/ntp/NewTabPageView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
index 6cb1f91b21014de41ba51ae07b81e1ddb8ffc665..c930f47735c1a7c5c0e2adb04e924cfd11fae6ba 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
@@ -134,6 +134,9 @@ public class NewTabPageView extends FrameLayout
/** Opens a given URL in the current tab. */
void open(String url);
+ /** Opens the recent tabs page in the current tab. */
+ void navigateToInterests();
+
/**
* Animates the search box up into the omnibox and bring up the keyboard.
* @param beginVoiceSearch Whether to begin a voice search.
@@ -307,6 +310,12 @@ public class NewTabPageView extends FrameLayout
mManager.navigateToBookmarks();
}
});
+ toolbar.getInterestsButton().setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ mManager.navigateToInterests();
+ }
+ });
initializeSearchBoxScrollHandling();
addOnLayoutChangeListener(this);

Powered by Google App Engine
This is Rietveld 408576698