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

Issue 292233002: Disable VK overscroll for login/out-of-box. (Closed)

Created:
6 years, 7 months ago by Nikita (slow)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Disabling virtual keyboard overscroll (at least for now) for login/out-of-box since scroll into view seems to be not working. Implement user pod scroll into view depending on the number of user pod rows available. Login pods scroll into view is triggered only on window resize and when keyboard is shown. This means that if keyboard is already shown (i.e. no resize is happening) and user selects another user pod in different row no scrolling happens i.e. relying on user to scroll pods manually. Also updating outer-container min-height based on primary display resolution. Note: Lock screen has overscroll enabled since default scroll into view implementation is working fine there. Main changes are in login_display_host_impl.cc display_manager.js user_pod_row.js keyboard_util.cc The rest is just adding 2 new common methods into the interfaces. To disable this feature: --disable-login-scroll-into-view Screenshots: https://folio.googleplex.com/loginvk BUG=363635 TEST=Manual: 1..6 rows of user pods, bring up VK. Both landscape and portrait mode, incl. screen rotation. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272843

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : fix test #

Patch Set 4 : add disable flag #

Patch Set 5 : refactor #

Patch Set 6 : comments #

Total comments: 12

Patch Set 7 : refactor #

Patch Set 8 : update client size area #

Patch Set 9 : calculate login UI scroll dynamically #

Patch Set 10 : special case #

Patch Set 11 : rebase #

Patch Set 12 : add prefefined scrollStops as well #

Patch Set 13 : use correct calculation #

Patch Set 14 : cleanup #

Patch Set 15 : rebase, keyboard override value: convert to bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -5 lines) Patch
M chrome/browser/chromeos/login/helper.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/helper.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/core_oobe_actor.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +60 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/mock_login_display.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login_common.js View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/resources/login/display_manager.js View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/resources/login/user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +38 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc View 1 2 3 4 5 6 7 5 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Nikita (slow)
dzioev@ - chrome/*/login kevers@ - ui/keyboard
6 years, 7 months ago (2014-05-20 18:05:06 UTC) #1
Nikita (slow)
> kevers@ - ui/keyboard +bshe@ for ui/keyboard
6 years, 7 months ago (2014-05-21 04:00:47 UTC) #2
kevers
https://codereview.chromium.org/292233002/diff/90001/ui/keyboard/keyboard_util.cc File ui/keyboard/keyboard_util.cc (right): https://codereview.chromium.org/292233002/diff/90001/ui/keyboard/keyboard_util.cc#newcode50 ui/keyboard/keyboard_util.cc:50: bool g_keyboard_overscroll_enabled_override_value = true; Feels a bit messy using ...
6 years, 7 months ago (2014-05-21 13:56:11 UTC) #3
Nikita (slow)
https://codereview.chromium.org/292233002/diff/90001/ui/keyboard/keyboard_util.cc File ui/keyboard/keyboard_util.cc (right): https://codereview.chromium.org/292233002/diff/90001/ui/keyboard/keyboard_util.cc#newcode50 ui/keyboard/keyboard_util.cc:50: bool g_keyboard_overscroll_enabled_override_value = true; On 2014/05/21 13:56:11, kevers wrote: ...
6 years, 7 months ago (2014-05-21 17:21:03 UTC) #4
dzhioev (left Google)
https://codereview.chromium.org/292233002/diff/90001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): https://codereview.chromium.org/292233002/diff/90001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode910 chrome/browser/chromeos/login/ui/login_display_host_impl.cc:910: if (webui_login_display_) { Shouldn't we also set keyboard state ...
6 years, 7 months ago (2014-05-21 17:30:31 UTC) #5
kevers
ui/keyboard lgtm
6 years, 7 months ago (2014-05-21 17:54:12 UTC) #6
bshe
On 2014/05/21 17:54:12, kevers wrote: > ui/keyboard lgtm lgtm
6 years, 7 months ago (2014-05-21 19:12:40 UTC) #7
Nikita (slow)
Please take a look, added code that updates scroll-container min-height based on primary screen resolution. ...
6 years, 7 months ago (2014-05-22 15:11:49 UTC) #8
dzhioev (left Google)
On 2014/05/22 15:11:49, Nikita Kostylev wrote: > Please take a look, added code that updates ...
6 years, 7 months ago (2014-05-23 15:17:51 UTC) #9
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 7 months ago (2014-05-23 16:04:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/292233002/230001
6 years, 7 months ago (2014-05-23 16:05:57 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 20:07:12 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 22:03:50 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/22594)
6 years, 7 months ago (2014-05-23 22:03:51 UTC) #14
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 7 months ago (2014-05-25 22:23:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/292233002/250001
6 years, 7 months ago (2014-05-25 22:24:04 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-26 00:15:31 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-26 00:40:00 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77543)
6 years, 7 months ago (2014-05-26 00:40:01 UTC) #19
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 7 months ago (2014-05-26 04:15:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/292233002/250001
6 years, 7 months ago (2014-05-26 04:16:06 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-26 16:17:32 UTC) #22
Message was sent while issue was closed.
Change committed as 272843

Powered by Google App Engine
This is Rietveld 408576698