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

Issue 240443006: Remove native VK window height logic and wait for resizeTo to setup VK window height (Closed)

Created:
6 years, 8 months ago by bshe
Modified:
6 years, 8 months ago
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank
Visibility:
Public.

Description

Currently, we try to set virtual keyboard window height both in native code and in VK's javascript code through window.resizeTo It sometimes creates conflict and cause strange animation issues. In this CL, the window height logic in native side is removed. The default window height is set to 0 and we expect javascript will set the window to correct height. If window is resized from a non zero height to another non zeor height, we current dont do any animation. BUG=363622 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265712

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Fix tests #

Total comments: 4

Patch Set 4 : review #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -131 lines) Patch
M ash/root_window_controller_unittest.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 2 3 4 2 chunks +11 lines, -22 lines 0 comments Download
M ui/keyboard/keyboard_controller.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 7 chunks +11 lines, -11 lines 0 comments Download
M ui/keyboard/keyboard_controller_proxy.h View 1 2 chunks +0 lines, -12 lines 0 comments Download
M ui/keyboard/keyboard_controller_proxy.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/keyboard/keyboard_controller_unittest.cc View 1 2 3 4 4 chunks +27 lines, -36 lines 0 comments Download
M ui/keyboard/keyboard_layout_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/keyboard/keyboard_layout_manager.cc View 1 2 3 3 chunks +31 lines, -11 lines 0 comments Download
M ui/keyboard/keyboard_util.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.cc View 1 2 3 4 2 chunks +14 lines, -23 lines 0 comments Download
M ui/keyboard/resources/constants.js View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M ui/keyboard/resources/main.js View 1 2 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bshe
Hi Kevin and Shu. Per discussion earlier today, this is the CL that I came ...
6 years, 8 months ago (2014-04-22 16:20:02 UTC) #1
kevers
https://codereview.chromium.org/240443006/diff/40001/ui/keyboard/keyboard_util.cc File ui/keyboard/keyboard_util.cc (right): https://codereview.chromium.org/240443006/diff/40001/ui/keyboard/keyboard_util.cc#newcode49 ui/keyboard/keyboard_util.cc:49: const float kInitialHeightRatio = 0.0f; Please add a comment. ...
6 years, 8 months ago (2014-04-22 17:45:23 UTC) #2
Shu Chen
https://codereview.chromium.org/240443006/diff/40001/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/240443006/diff/40001/ui/keyboard/keyboard_controller.cc#newcode280 ui/keyboard/keyboard_controller.cc:280: OnShowImeIfNeeded(); From the current call paths, I think it ...
6 years, 8 months ago (2014-04-22 17:54:57 UTC) #3
bshe
Thanks for review. I have addressed all the comments. The new patch also include some ...
6 years, 8 months ago (2014-04-23 01:08:52 UTC) #4
kevers
lgtm
6 years, 8 months ago (2014-04-23 01:27:13 UTC) #5
Shu Chen
lgtm
6 years, 8 months ago (2014-04-23 01:40:14 UTC) #6
bshe
+missing owners oshima@ for: ash/root_window_controller_unittest.cc sadrul@ for : ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc pkotwicz@ for: ash/wm/system_modal_container_layout_manager_unittest.cc
6 years, 8 months ago (2014-04-23 14:09:45 UTC) #7
pkotwicz
LGTM with nits https://codereview.chromium.org/240443006/diff/80002/ash/wm/system_modal_container_layout_manager_unittest.cc File ash/wm/system_modal_container_layout_manager_unittest.cc (right): https://codereview.chromium.org/240443006/diff/80002/ash/wm/system_modal_container_layout_manager_unittest.cc#newcode190 ash/wm/system_modal_container_layout_manager_unittest.cc:190: ui::ScopedAnimationDurationScaleMode::NORMAL_DURATION); [Optional Nit]: You may be ...
6 years, 8 months ago (2014-04-23 15:18:41 UTC) #8
bshe
Done. Thanks for review. https://codereview.chromium.org/240443006/diff/80002/ash/wm/system_modal_container_layout_manager_unittest.cc File ash/wm/system_modal_container_layout_manager_unittest.cc (right): https://codereview.chromium.org/240443006/diff/80002/ash/wm/system_modal_container_layout_manager_unittest.cc#newcode190 ash/wm/system_modal_container_layout_manager_unittest.cc:190: ui::ScopedAnimationDurationScaleMode::NORMAL_DURATION); On 2014/04/23 15:18:42, pkotwicz ...
6 years, 8 months ago (2014-04-23 16:07:12 UTC) #9
oshima
https://codereview.chromium.org/240443006/diff/110001/ui/keyboard/keyboard_controller_unittest.cc File ui/keyboard/keyboard_controller_unittest.cc (right): https://codereview.chromium.org/240443006/diff/110001/ui/keyboard/keyboard_controller_unittest.cc#newcode200 ui/keyboard/keyboard_controller_unittest.cc:200: gfx::Rect window_bounds = controller()->GetContainerWindow()->bounds(); you're doing this in muliple ...
6 years, 8 months ago (2014-04-23 16:14:07 UTC) #10
bshe
Add a function in keyboard_util. Thanks https://codereview.chromium.org/240443006/diff/110001/ui/keyboard/keyboard_controller_unittest.cc File ui/keyboard/keyboard_controller_unittest.cc (right): https://codereview.chromium.org/240443006/diff/110001/ui/keyboard/keyboard_controller_unittest.cc#newcode200 ui/keyboard/keyboard_controller_unittest.cc:200: gfx::Rect window_bounds = ...
6 years, 8 months ago (2014-04-23 16:39:07 UTC) #11
oshima
thanks, lgtm
6 years, 8 months ago (2014-04-23 16:40:02 UTC) #12
sadrul
[removing myself; you don't need review from me]
6 years, 8 months ago (2014-04-23 16:51:25 UTC) #13
bshe
The CQ bit was checked by bshe@chromium.org
6 years, 8 months ago (2014-04-23 17:00:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/240443006/130001
6 years, 8 months ago (2014-04-23 17:01:31 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 20:00:04 UTC) #16
Message was sent while issue was closed.
Change committed as 265712

Powered by Google App Engine
This is Rietveld 408576698