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

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

Issue 2061803002: 📰 The Status card reports disabled sync states (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplifyBridge
Patch Set: yolo: another big bag of changes Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.res.Resources; 9 import android.content.res.Resources;
10 import android.graphics.Bitmap; 10 import android.graphics.Bitmap;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 /** @return Whether the omnibox 'Search or type URL' text should be show n. */ 139 /** @return Whether the omnibox 'Search or type URL' text should be show n. */
140 boolean isFakeOmniboxTextEnabledTablet(); 140 boolean isFakeOmniboxTextEnabledTablet();
141 141
142 /** Opens the bookmarks page in the current tab. */ 142 /** Opens the bookmarks page in the current tab. */
143 void navigateToBookmarks(); 143 void navigateToBookmarks();
144 144
145 /** Opens the recent tabs page in the current tab. */ 145 /** Opens the recent tabs page in the current tab. */
146 void navigateToRecentTabs(); 146 void navigateToRecentTabs();
147 147
148 /** 148 /**
149 * Opens an url in the current tab. 149 * Opens an url in the current tab and records related metrics.
150 * @param url the URL to open 150 * @param url the URL to open
151 */ 151 */
152 void openSnippet(String url); 152 void openSnippet(String url);
153 153
154 /** Opens a url in the current tab. */
155 void openUrl(String url);
156
154 /** Opens the interests dialog. */ 157 /** Opens the interests dialog. */
155 void navigateToInterests(); 158 void navigateToInterests();
156 159
157 /** 160 /**
158 * Animates the search box up into the omnibox and bring up the keyboard . 161 * Animates the search box up into the omnibox and bring up the keyboard .
159 * @param beginVoiceSearch Whether to begin a voice search. 162 * @param beginVoiceSearch Whether to begin a voice search.
160 * @param pastedText Text to paste in the omnibox after it's been focuse d. May be null. 163 * @param pastedText Text to paste in the omnibox after it's been focuse d. May be null.
161 */ 164 */
162 void focusSearchBox(boolean beginVoiceSearch, String pastedText); 165 void focusSearchBox(boolean beginVoiceSearch, String pastedText);
163 166
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 } 1088 }
1086 1089
1087 private int getVerticalScroll() { 1090 private int getVerticalScroll() {
1088 if (mUseCardsUi) { 1091 if (mUseCardsUi) {
1089 return mRecyclerView.computeVerticalScrollOffset(); 1092 return mRecyclerView.computeVerticalScrollOffset();
1090 } else { 1093 } else {
1091 return mScrollView.getScrollY(); 1094 return mScrollView.getScrollY();
1092 } 1095 }
1093 } 1096 }
1094 } 1097 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698