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

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed)

Created:
6 years, 9 months ago by kevers
Modified:
6 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromim.org, sadrul, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, ben+aura_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, James Su, danakj+watch_chromium.org, ben+ash_chromium.org, miu+watch_chromium.org, bokan, wjmaclean, SteveT, Shu Chen, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Implement overscroll support for the virtual keyboard. Instead of resizing windows to prevent occlusion by the virtual keyboard, the inner viewport is resized to extend the vertical scroll range. BUG=242933 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266662

Patch Set 1 #

Patch Set 2 : Formattting tweaks. #

Patch Set 3 : Merge ToT #

Patch Set 4 : Add flag to enable/disable VK overscroll. #

Patch Set 5 : Fix copyright notice. #

Total comments: 4

Patch Set 6 : Update to use singleton keyboard controller. #

Patch Set 7 : Remove extra blank line. #

Total comments: 4

Patch Set 8 : Add unit test. #

Total comments: 2

Patch Set 9 : Add OVERRIDE #

Total comments: 1

Patch Set 10 : Remove cyclic dependency. #

Patch Set 11 : Fix content_unittests #

Patch Set 12 : Code cleanup. #

Patch Set 13 : Fix work area resize when virtual keyboard is shown. #

Total comments: 8

Patch Set 14 : Address reviewer feedback. #

Total comments: 12

Patch Set 15 : Address reviewer feedback. #

Patch Set 16 : Fix unittest. #

Total comments: 6

Patch Set 17 : Clip viewport size. #

Patch Set 18 : Merge ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -28 lines) Patch
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -11 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +30 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 10 chunks +23 lines, -12 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +29 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_switches.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_switches.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 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 15 16 17 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
kevers
Hi Sadrul, Can you please take a look at this CL.
6 years, 9 months ago (2014-03-25 17:20:34 UTC) #1
sadrul
https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h File ui/aura/client/virtual_keyboard_client.h (right): https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h#newcode22 ui/aura/client/virtual_keyboard_client.h:22: class AURA_EXPORT VirtualKeyboardClient { Why do we need to ...
6 years, 9 months ago (2014-03-26 17:19:18 UTC) #2
kevers
https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h File ui/aura/client/virtual_keyboard_client.h (right): https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h#newcode22 ui/aura/client/virtual_keyboard_client.h:22: class AURA_EXPORT VirtualKeyboardClient { On 2014/03/26 17:19:18, sadrul wrote: ...
6 years, 9 months ago (2014-03-26 17:43:46 UTC) #3
sadrul
https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h File ui/aura/client/virtual_keyboard_client.h (right): https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h#newcode22 ui/aura/client/virtual_keyboard_client.h:22: class AURA_EXPORT VirtualKeyboardClient { On 2014/03/26 17:43:46, kevers wrote: ...
6 years, 9 months ago (2014-03-26 18:26:20 UTC) #4
kevers
https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h File ui/aura/client/virtual_keyboard_client.h (right): https://codereview.chromium.org/195793004/diff/90001/ui/aura/client/virtual_keyboard_client.h#newcode22 ui/aura/client/virtual_keyboard_client.h:22: class AURA_EXPORT VirtualKeyboardClient { On 2014/03/26 18:26:21, sadrul wrote: ...
6 years, 8 months ago (2014-04-09 20:06:27 UTC) #5
sadrul
You should add some unit-tests to verify that the renderer is receiving the correct IPC ...
6 years, 8 months ago (2014-04-10 18:27:27 UTC) #6
kevers
Added unit test. https://codereview.chromium.org/195793004/diff/150001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/195793004/diff/150001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode3239 content/browser/renderer_host/render_widget_host_view_aura.cc:3239: // RenderWidgetHostViewAura, aura::client::VirtualKeyboardObserver On 2014/04/10 18:27:27, ...
6 years, 8 months ago (2014-04-14 18:47:45 UTC) #7
sadrul
Cool. lgtm Please get a review from jam@ for the .gyp* and DEPS changes in ...
6 years, 8 months ago (2014-04-15 16:26:42 UTC) #8
kevers
+jam@ for content OWNERS +oshima@ for ash OWNERS https://codereview.chromium.org/195793004/diff/170001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/195793004/diff/170001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1357 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1357: virtual ...
6 years, 8 months ago (2014-04-15 17:26:43 UTC) #9
kevers
Oops...forgot to update reviewers. +jam@ for content OWNERS +jamescook@ for ash OWNERS
6 years, 8 months ago (2014-04-15 17:28:53 UTC) #10
James Cook
ash/* lgtm https://codereview.chromium.org/195793004/diff/190001/ui/keyboard/keyboard_util.h File ui/keyboard/keyboard_util.h (right): https://codereview.chromium.org/195793004/diff/190001/ui/keyboard/keyboard_util.h#newcode67 ui/keyboard/keyboard_util.h:67: KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); Not for this CL ...
6 years, 8 months ago (2014-04-15 17:54:10 UTC) #11
kevers
Putting this CL on hold for a bit. Turns out that keyboard depends on content, ...
6 years, 8 months ago (2014-04-15 19:23:35 UTC) #12
jam
sky is an owner in content/browser and ui/, so I defer to him as I'm ...
6 years, 8 months ago (2014-04-15 19:29:07 UTC) #13
kevers
Cleaned up dependencies. The keyboard code directly informs the views of a size change. jam ...
6 years, 8 months ago (2014-04-22 23:43:15 UTC) #14
kevers
CCing aelias for android sanity check.
6 years, 8 months ago (2014-04-23 17:05:23 UTC) #15
kevers
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode629 content/browser/renderer_host/render_widget_host_impl.cc:629: params.overdraw_bottom_height = overdraw_bottom_height_; Based on discussions with aelias, it ...
6 years, 8 months ago (2014-04-23 17:09:12 UTC) #16
aelias_OOO_until_Jul13
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode629 content/browser/renderer_host/render_widget_host_impl.cc:629: params.overdraw_bottom_height = overdraw_bottom_height_; On 2014/04/23 17:09:13, kevers wrote: > ...
6 years, 8 months ago (2014-04-23 19:41:57 UTC) #17
sadrul
ui/keyboard/ slgtm
6 years, 8 months ago (2014-04-23 19:50:21 UTC) #18
sky
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode888 content/browser/renderer_host/render_widget_host_view_aura.cc:888: void RenderWidgetHostViewAura::SetKeyboardBounds(const gfx::Rect& bounds) { Is there a reason ...
6 years, 8 months ago (2014-04-23 20:47:07 UTC) #19
kevers
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode888 content/browser/renderer_host/render_widget_host_view_aura.cc:888: void RenderWidgetHostViewAura::SetKeyboardBounds(const gfx::Rect& bounds) { On 2014/04/23 20:47:08, sky ...
6 years, 8 months ago (2014-04-23 20:57:48 UTC) #20
sky
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode888 content/browser/renderer_host/render_widget_host_view_aura.cc:888: void RenderWidgetHostViewAura::SetKeyboardBounds(const gfx::Rect& bounds) { On 2014/04/23 20:57:49, kevers ...
6 years, 8 months ago (2014-04-23 21:15:30 UTC) #21
kevers
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode629 content/browser/renderer_host/render_widget_host_impl.cc:629: params.overdraw_bottom_height = overdraw_bottom_height_; On 2014/04/23 19:41:58, aelias wrote: > ...
6 years, 8 months ago (2014-04-24 02:02:12 UTC) #22
sky
https://codereview.chromium.org/195793004/diff/290001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/195793004/diff/290001/content/browser/renderer_host/render_widget_host_impl.h#newcode774 content/browser/renderer_host/render_widget_host_impl.h:774: gfx::SizeF visible_viewport_size_; Same comment about floating point. https://codereview.chromium.org/195793004/diff/290001/content/browser/renderer_host/render_widget_host_view_aura.cc File ...
6 years, 8 months ago (2014-04-24 15:55:07 UTC) #23
bokan
https://codereview.chromium.org/195793004/diff/290001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/195793004/diff/290001/content/renderer/render_widget.cc#newcode669 content/renderer/render_widget.cc:669: webwidget()->resizePinchViewport(gfx::Size( This should actually go below the webwidget_->resize() call ...
6 years, 8 months ago (2014-04-24 17:37:46 UTC) #24
kevers
https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/195793004/diff/270001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode629 content/browser/renderer_host/render_widget_host_impl.cc:629: params.overdraw_bottom_height = overdraw_bottom_height_; On 2014/04/24 02:02:13, kevers wrote: > ...
6 years, 8 months ago (2014-04-24 18:38:32 UTC) #25
sky
https://codereview.chromium.org/195793004/diff/330001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/195793004/diff/330001/content/browser/renderer_host/render_widget_host_impl.cc#newcode604 content/browser/renderer_host/render_widget_host_impl.cc:604: gfx::SizeF old_visible_viewport_size = visible_viewport_size_; SizeF->Size https://codereview.chromium.org/195793004/diff/330001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): ...
6 years, 8 months ago (2014-04-24 19:15:00 UTC) #26
kevers
https://codereview.chromium.org/195793004/diff/330001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/195793004/diff/330001/content/browser/renderer_host/render_widget_host_impl.cc#newcode604 content/browser/renderer_host/render_widget_host_impl.cc:604: gfx::SizeF old_visible_viewport_size = visible_viewport_size_; On 2014/04/24 19:15:01, sky wrote: ...
6 years, 8 months ago (2014-04-24 20:08:59 UTC) #27
sky
LGTM
6 years, 8 months ago (2014-04-24 22:25:45 UTC) #28
jam
content/common and content/public lgtm (sky reviewed content/browser)
6 years, 8 months ago (2014-04-25 17:17:00 UTC) #29
kevers
The CQ bit was checked by kevers@chromium.org
6 years, 8 months ago (2014-04-25 17:21:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/195793004/350001
6 years, 8 months ago (2014-04-25 22:14:35 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:26:13 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 23:26:15 UTC) #33
kenrb
lgtm for the IPC change
6 years, 7 months ago (2014-04-28 14:32:23 UTC) #34
kevers
The CQ bit was checked by kevers@chromium.org
6 years, 7 months ago (2014-04-28 15:10:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/195793004/370001
6 years, 7 months ago (2014-04-28 15:11:10 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 15:34:50 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on android_dbg
6 years, 7 months ago (2014-04-28 15:34:51 UTC) #38
kevers
The CQ bit was checked by kevers@chromium.org
6 years, 7 months ago (2014-04-28 18:53:40 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/195793004/370001
6 years, 7 months ago (2014-04-28 18:54:02 UTC) #40
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 21:19:46 UTC) #41
Message was sent while issue was closed.
Change committed as 266662

Powered by Google App Engine
This is Rietveld 408576698