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

Issue 250423004: ChromeOS: Avoid overlapping app list with virtual keyboard. (Closed)

Created:
6 years, 8 months ago by Matt Giuca
Modified:
6 years, 7 months ago
Reviewers:
tapted, oshima, kevers
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, sadrul
Visibility:
Public.

Description

ChromeOS: Avoid overlapping app list with virtual keyboard. When the app list is centered (--enable-experimental-app-list-position), and the virtual keyboard is active, the app list is centered in the screen rect that excludes the keyboard region. BUG=363731 TEST=Run with --enable-experimental-app-list-position --enable-virtual-keyboard. Open the app list, then the virtual keyboard. The app list should move upwards so it is centered in the part of the screen without the virtual keyboard. TEST=Same as above, but with the additional flag --enable-virtual-keyboard-overscroll. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268131

Patch Set 1 #

Patch Set 2 : Added ui/keyboard to app_list DEPS. #

Patch Set 3 : Avoid DEPS changes; use AppListViewDelegate instead. #

Total comments: 6

Patch Set 4 : Fix tapted's comments. #

Patch Set 5 : Fix tests. #

Patch Set 6 : Fixed ExampleAppList. #

Patch Set 7 : Rebase off CL 260663002. #

Patch Set 8 : Remove cruft. #

Patch Set 9 : Fix when overscroll is enabled (added KeyboardControllerObserver). #

Total comments: 4

Patch Set 10 : Rebase. #

Patch Set 11 : Remove the KeyboardControllerObserver on shutdown. #

Total comments: 4

Patch Set 12 : Null check KeyboardController. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
M ash/wm/app_list_controller.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/app_list_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +29 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Matt Giuca
tapted: OWNERS. sadrul: ui/keyboard OWNERS. I need to access ui/keyboard from app_list to move the ...
6 years, 7 months ago (2014-04-28 03:01:51 UTC) #1
sadrul
+kevers@ for ui/keyboard/
6 years, 7 months ago (2014-04-28 04:06:58 UTC) #2
Matt Giuca
Hey, sorry to do this. I've had a discussion with calamity and tapted here, and ...
6 years, 7 months ago (2014-04-28 04:09:05 UTC) #3
sadrul
On 2014/04/28 04:09:05, Matt Giuca wrote: > Hey, sorry to do this. I've had a ...
6 years, 7 months ago (2014-04-28 04:14:02 UTC) #4
Matt Giuca
Yes, that wasn't some kind of evil supervillain euphemism, if you're wondering :)
6 years, 7 months ago (2014-04-28 04:46:42 UTC) #5
Matt Giuca
Oops forgot to send this out again. tapted: PTAL. sadrul, kevers: No longer required. Thank ...
6 years, 7 months ago (2014-04-29 03:29:47 UTC) #6
tapted
https://codereview.chromium.org/250423004/diff/40001/ui/app_list/views/app_list_view.cc File ui/app_list/views/app_list_view.cc (right): https://codereview.chromium.org/250423004/diff/40001/ui/app_list/views/app_list_view.cc#newcode362 ui/app_list/views/app_list_view.cc:362: gfx::Rect bounds = screen_to_keep_centered_on_->GetPrimaryDisplay().bounds(); Can we just center in ...
6 years, 7 months ago (2014-04-29 03:39:16 UTC) #7
Matt Giuca
Oh... :| Well if that's true then that's certainly better. I'll try it out this ...
6 years, 7 months ago (2014-04-29 03:41:39 UTC) #8
Matt Giuca
https://codereview.chromium.org/250423004/diff/40001/ui/app_list/views/app_list_view.cc File ui/app_list/views/app_list_view.cc (right): https://codereview.chromium.org/250423004/diff/40001/ui/app_list/views/app_list_view.cc#newcode362 ui/app_list/views/app_list_view.cc:362: gfx::Rect bounds = screen_to_keep_centered_on_->GetPrimaryDisplay().bounds(); Hmm... unfortunately it looks like ...
6 years, 7 months ago (2014-04-29 05:51:34 UTC) #9
tapted
https://codereview.chromium.org/250423004/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/250423004/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode419 chrome/browser/ui/app_list/app_list_view_delegate.cc:419: keyboard::KeyboardController::GetInstance(); I think you'll need to guard this in ...
6 years, 7 months ago (2014-04-29 06:09:52 UTC) #10
Matt Giuca
https://codereview.chromium.org/250423004/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/250423004/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode419 chrome/browser/ui/app_list/app_list_view_delegate.cc:419: keyboard::KeyboardController::GetInstance(); I thought you originally told me not to ...
6 years, 7 months ago (2014-04-29 06:26:11 UTC) #11
tapted
lgtm
6 years, 7 months ago (2014-04-29 06:40:41 UTC) #12
Matt Giuca
Sorry, tests failed. Can you quickly look at Patch Set 5?
6 years, 7 months ago (2014-04-29 07:08:28 UTC) #13
Matt Giuca
oshima: Hi, can you please look at the small change to ash/shell/app_list.cc (ExampleAppList). Thanks.
6 years, 7 months ago (2014-04-29 08:52:55 UTC) #14
tapted
slgtm
6 years, 7 months ago (2014-04-29 09:30:45 UTC) #15
oshima
ash lgtm
6 years, 7 months ago (2014-04-29 15:16:42 UTC) #16
kevers
Hey Matt, Just a heads up, support for virtual keyboard overscroll landed yesterday (https://codereview.chromium.org/195793004/). Just ...
6 years, 7 months ago (2014-04-29 15:30:48 UTC) #17
kevers
On 2014/04/29 15:30:48, kevers wrote: > Hey Matt, > > Just a heads up, support ...
6 years, 7 months ago (2014-04-29 15:51:03 UTC) #18
Matt Giuca
Thanks for the heads up; I will investigate this.
6 years, 7 months ago (2014-04-29 23:03:14 UTC) #19
Matt Giuca
OK I've investigated the overscroll feature. I can fix it by adding a KeyboardObserver, but ...
6 years, 7 months ago (2014-04-30 04:05:02 UTC) #20
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-04-30 04:05:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/250423004/90001
6 years, 7 months ago (2014-04-30 04:07:20 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 04:22:58 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 04:22:59 UTC) #24
Matt Giuca
Oshima: Sorry about this, I had a chat with Trent about this CL and he ...
6 years, 7 months ago (2014-04-30 08:00:47 UTC) #25
Matt Giuca
Note that this is now based on the uncommitted CL: https://codereview.chromium.org/260663002/
6 years, 7 months ago (2014-04-30 08:01:16 UTC) #26
oshima
On 2014/04/30 08:01:16, Matt Giuca wrote: > Note that this is now based on the ...
6 years, 7 months ago (2014-04-30 14:51:18 UTC) #27
Matt Giuca
On 2014/04/30 14:51:18, oshima wrote: > Would you mind creating a new CL as this ...
6 years, 7 months ago (2014-04-30 22:20:31 UTC) #28
oshima
On 2014/04/30 22:20:31, Matt Giuca wrote: > On 2014/04/30 14:51:18, oshima wrote: > > Would ...
6 years, 7 months ago (2014-04-30 23:44:20 UTC) #29
oshima
https://codereview.chromium.org/250423004/diff/170001/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/250423004/diff/170001/ash/wm/app_list_controller.cc#newcode119 ash/wm/app_list_controller.cc:119: gfx::Rect bounds = Shell::GetScreen()->GetPrimaryDisplay().bounds(); This always returns the center ...
6 years, 7 months ago (2014-04-30 23:44:27 UTC) #30
Matt Giuca
> It's not necessary. It's just a good practice as chrome team is big and ...
6 years, 7 months ago (2014-05-01 05:00:32 UTC) #31
kevers
https://codereview.chromium.org/250423004/diff/210001/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/250423004/diff/210001/ash/wm/app_list_controller.cc#newcode247 ash/wm/app_list_controller.cc:247: keyboard::KeyboardController::GetInstance()->AddObserver(this); GetInstance may return NULL. https://codereview.chromium.org/250423004/diff/210001/ash/wm/app_list_controller.cc#newcode263 ash/wm/app_list_controller.cc:263: keyboard::KeyboardController::GetInstance()->RemoveObserver(this); GetInstance ...
6 years, 7 months ago (2014-05-01 11:55:20 UTC) #32
Matt Giuca
https://codereview.chromium.org/250423004/diff/210001/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/250423004/diff/210001/ash/wm/app_list_controller.cc#newcode247 ash/wm/app_list_controller.cc:247: keyboard::KeyboardController::GetInstance()->AddObserver(this); Interesting, Shell::GetInstance() doesn't have a null check. I ...
6 years, 7 months ago (2014-05-02 00:36:19 UTC) #33
kevers
lgtm
6 years, 7 months ago (2014-05-02 15:10:28 UTC) #34
oshima
lgtm
6 years, 7 months ago (2014-05-02 15:57:01 UTC) #35
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-02 22:56:27 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/250423004/230001
6 years, 7 months ago (2014-05-02 22:57:13 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 23:14:16 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium
6 years, 7 months ago (2014-05-02 23:14:17 UTC) #39
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-04 23:44:46 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/250423004/230001
6 years, 7 months ago (2014-05-04 23:44:55 UTC) #41
commit-bot: I haz the power
6 years, 7 months ago (2014-05-05 00:48:48 UTC) #42
Message was sent while issue was closed.
Change committed as 268131

Powered by Google App Engine
This is Rietveld 408576698