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

Issue 25111002: Only show virtual keyboard on primary root window (Closed)

Created:
7 years, 2 months ago by bshe
Modified:
7 years, 2 months ago
Reviewers:
miket_OOO, oshima, varkha, sadrul
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Only show virtual keyboard on primary root window In order to display virtual keyboard(VK) only on primary root window, this CL did 1. Shell takes ownership of keyboard controller(KC) instead of RootWindowController 2. keyboard container window is owned by KC instead of its parent There should only be one KC and one keyboard container at any time after this change. keyboard container can be dynamically enabled/disabled on a RootWindowController at runtime. If you want to do that, you should DisableKeyboard on the previous RootWindowController first and then EnableKeyboard on the new RootWindowController. BUG=297858 TEST= 1. enable virtual keyboard from about::/flags on a Chromebook 2. plug in an external monitor verify only one virtual keyboard shows Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227088

Patch Set 1 #

Patch Set 2 : Add unit tests #

Total comments: 5

Patch Set 3 : Move KeyboardController to shell #

Total comments: 4

Patch Set 4 : move container_ initialization back #

Total comments: 8

Patch Set 5 : reviews #

Total comments: 26

Patch Set 6 : rebase #

Patch Set 7 : add/remove docked_layout_manager #

Patch Set 8 : More reviews #

Patch Set 9 : Fix keyboard_unittests #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Total comments: 8

Patch Set 12 : Reset keyboard controller before NULL shell instance #

Patch Set 13 : Add a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -494 lines) Patch
M ash/root_window_controller.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -9 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +36 lines, -24 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -1 line 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +456 lines, -430 lines 0 comments Download
M chrome/browser/extensions/api/input/input.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller.h View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 4 6 chunks +11 lines, -16 lines 0 comments Download
M ui/keyboard/keyboard_controller_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
bshe
Hey Oshima. Would you mind to take a look at this CL? It restricts the ...
7 years, 2 months ago (2013-09-27 19:17:19 UTC) #1
oshima
https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc#newcode529 ash/root_window_controller.cc:529: keyboard_controller_.reset( If there should be only one KeyboardCOntroller, shouldn't ...
7 years, 2 months ago (2013-09-28 04:37:26 UTC) #2
bshe
https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc#newcode529 ash/root_window_controller.cc:529: keyboard_controller_.reset( +sadrul I am happy to do the suggested ...
7 years, 2 months ago (2013-09-30 18:20:49 UTC) #3
sadrul
https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc#newcode529 ash/root_window_controller.cc:529: keyboard_controller_.reset( On 2013/09/30 18:20:50, bshe wrote: > +sadrul > ...
7 years, 2 months ago (2013-09-30 18:31:50 UTC) #4
oshima
On 2013/09/30 18:31:50, sadrul wrote: > https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc > File ash/root_window_controller.cc (right): > > https://codereview.chromium.org/25111002/diff/4001/ash/root_window_controller.cc#newcode529 > ...
7 years, 2 months ago (2013-09-30 18:52:14 UTC) #5
bshe
I have made the suggested change (move KC to Shell). Now, only one KC is ...
7 years, 2 months ago (2013-10-03 01:05:43 UTC) #6
sadrul
https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc#newcode136 ui/keyboard/keyboard_controller.cc:136: container_->SetLayoutManager(new KeyboardLayoutManager(container_)); Is this change necessary?
7 years, 2 months ago (2013-10-03 15:26:28 UTC) #7
bshe
https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc#newcode136 ui/keyboard/keyboard_controller.cc:136: container_->SetLayoutManager(new KeyboardLayoutManager(container_)); dooh. noop. It was from one of ...
7 years, 2 months ago (2013-10-03 15:57:13 UTC) #8
oshima
don't you have to disable VK when shutdown? https://codereview.chromium.org/25111002/diff/23001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/23001/ash/root_window_controller.cc#newcode523 ash/root_window_controller.cc:523: if ...
7 years, 2 months ago (2013-10-03 16:38:46 UTC) #9
varkha
https://codereview.chromium.org/25111002/diff/23001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/23001/ash/root_window_controller.cc#newcode525 ash/root_window_controller.cc:525: keyboard_controller->AddObserver(panel_layout_manager_); You will need to add (move here) keyboard_controller->AddObserver(docked_layout_manager_); ...
7 years, 2 months ago (2013-10-03 18:39:41 UTC) #10
bshe
Address comments. Could you please take another look? https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/25111002/diff/16001/ui/keyboard/keyboard_controller.cc#newcode136 ui/keyboard/keyboard_controller.cc:136: container_->SetLayoutManager(new ...
7 years, 2 months ago (2013-10-04 00:58:08 UTC) #11
sadrul
ui/keyboard/ LGTM Please update the CL description to briefly explain the change, and also please ...
7 years, 2 months ago (2013-10-04 01:19:52 UTC) #12
bshe
Thanks. I have updated the issue description. +miket for chrome/browser/extensions/api/input/input.cc
7 years, 2 months ago (2013-10-04 01:48:27 UTC) #13
varkha
https://codereview.chromium.org/25111002/diff/35001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/35001/ash/root_window_controller.cc#newcode409 ash/root_window_controller.cc:409: // Disable keyboard container before close child windows and ...
7 years, 2 months ago (2013-10-04 01:54:06 UTC) #14
bshe
Thanks for review. Please see patchset 7 for reviews. patchset 8 is for fixing keyboard_unittests. ...
7 years, 2 months ago (2013-10-04 03:04:38 UTC) #15
varkha
lgtm
7 years, 2 months ago (2013-10-04 03:20:06 UTC) #16
oshima
https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc#newcode549 ash/root_window_controller.cc:549: keyboard_container->SetBounds(parent->bounds()); won't RootWindowLayoutManager handle this? https://codereview.chromium.org/25111002/diff/118001/ash/shell.cc File ash/shell.cc (left): ...
7 years, 2 months ago (2013-10-04 16:50:17 UTC) #17
bshe
https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc#newcode549 ash/root_window_controller.cc:549: keyboard_container->SetBounds(parent->bounds()); Sorry, just to confirm, do you mean the ...
7 years, 2 months ago (2013-10-04 17:38:32 UTC) #18
oshima
lgtm https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc#newcode549 ash/root_window_controller.cc:549: keyboard_container->SetBounds(parent->bounds()); On 2013/10/04 17:38:32, bshe wrote: > Sorry, ...
7 years, 2 months ago (2013-10-04 17:51:35 UTC) #19
miket_OOO
chrome/browser/extensions/api/input/input.cc LGTM
7 years, 2 months ago (2013-10-04 17:54:32 UTC) #20
bshe
Thanks for reviews! https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25111002/diff/118001/ash/root_window_controller.cc#newcode549 ash/root_window_controller.cc:549: keyboard_container->SetBounds(parent->bounds()); Thanks! Added a TODO. On ...
7 years, 2 months ago (2013-10-04 18:05:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/25111002/45001
7 years, 2 months ago (2013-10-04 18:06:34 UTC) #22
commit-bot: I haz the power
7 years, 2 months ago (2013-10-04 21:38:52 UTC) #23
Message was sent while issue was closed.
Change committed as 227088

Powered by Google App Engine
This is Rietveld 408576698