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

Issue 1904023004: [Android] Ignore scroll position when accommodating omnibox focus on the cards UI NTP (Closed)

Created:
4 years, 8 months ago by Bernhard Bauer
Modified:
4 years, 8 months ago
Reviewers:
PEConn
CC:
chromium-reviews, mcwilliams+watch_chromium.org, dgn+watch_chromium.org, May
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Ignore scroll position when accommodating omnibox focus on the cards UI NTP When the omnibox is focused on the New Tab Page, this effectively positions the above-the-fold tiles where they would appear if it was scrolled all the way to the top, even when it's scrolled further down. Because of snap scrolling in the cards UI, the only steady state where tiles are visible is scrolled all the way to the top, so in that position we match the previous behavior, and if they are scrolled out of sight, they will now stay hidden, which is the desired result. Also, make |mSearchBoxView| a local variable, as it's only used during initialization. BUG=604371 Committed: https://crrev.com/fafb2f03ab60e7d762c22e08faa7906ec83ba88a Cr-Commit-Position: refs/heads/master@{#389255}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java View 1 2 4 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Bernhard Bauer
Please review.
4 years, 8 months ago (2016-04-21 12:32:54 UTC) #4
PEConn
https://codereview.chromium.org/1904023004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java (right): https://codereview.chromium.org/1904023004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java#newcode670 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:670: private void setUrlFocusChangeAnimationPercentInternal(float percent) { So this function is ...
4 years, 8 months ago (2016-04-21 16:45:00 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/1904023004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java (right): https://codereview.chromium.org/1904023004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java#newcode670 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:670: private void setUrlFocusChangeAnimationPercentInternal(float percent) { On 2016/04/21 16:45:00, PEConn1 ...
4 years, 8 months ago (2016-04-22 12:42:31 UTC) #7
PEConn
On 2016/04/22 12:42:31, Bernhard Bauer wrote: > https://codereview.chromium.org/1904023004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java > File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java > (right): > > ...
4 years, 8 months ago (2016-04-22 14:32:34 UTC) #8
Bernhard Bauer
On 2016/04/22 14:32:34, PEConn1 wrote: > On 2016/04/22 12:42:31, Bernhard Bauer wrote: > > > ...
4 years, 8 months ago (2016-04-22 15:25:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904023004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904023004/40001
4 years, 8 months ago (2016-04-22 20:39:02 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-22 21:55:50 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 21:57:22 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fafb2f03ab60e7d762c22e08faa7906ec83ba88a
Cr-Commit-Position: refs/heads/master@{#389255}

Powered by Google App Engine
This is Rietveld 408576698