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

Issue 613343005: Automatic deployment of the virtual keyboard. (Closed)

Created:
6 years, 2 months ago by rsadam
Modified:
6 years, 1 month ago
Reviewers:
flackr, Mark P, sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Automatic deployment of the virtual keyboard. For now we hide this under the flag: auto-virtual-keyboard. This patch makes the controller a input device observer, instead of a shell observer. It records the presence of internal keyboards, external keyboard, and touchscreens. When the flag is enabled, the keyboard will not be shown if there does not exist a touchscreen device. The keyboard will be shown if the user is in maximized mode, or does not have an internal keyboard present. BUG=373402 TEST=VirtualKeyboardControllerAutoTest.DisabledIfInternalKeyboardPresent, VirtualKeyboardControllerAutoTest.DisabledIfNoTouchScreen Committed: https://crrev.com/9172bc8ad1c0514a1f0041a791dfbe9ef4549f36 Cr-Commit-Position: refs/heads/master@{#301977}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add unittests. #

Total comments: 12

Patch Set 4 : Address comments. #

Patch Set 5 : Virtual keyboard controller is no longer a maximized mode observer. #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : Do not display the keyboard while testing on desktop. #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : Attempt #2 #

Patch Set 11 : Remake this a shell observer. #

Patch Set 12 : #

Total comments: 14

Patch Set 13 : #

Total comments: 10

Patch Set 14 : #

Total comments: 6

Patch Set 15 : #

Patch Set 16 : Rebase to master. #

Patch Set 17 : Added histogram. #

Patch Set 18 : Add export. #

Patch Set 19 : Use base export #

Patch Set 20 : ChromeOS only. #

Patch Set 21 : #

Patch Set 22 : Remove gyp from windows. #

Patch Set 23 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -21 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +1 line, -1 line 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +9 lines, -2 lines 0 comments Download
M ash/virtual_keyboard_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 20 21 1 chunk +28 lines, -4 lines 0 comments Download
M ash/virtual_keyboard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 21 1 chunk +83 lines, -6 lines 0 comments Download
M ash/virtual_keyboard_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 20 21 1 chunk +90 lines, -7 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 1 chunk +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/input_device_event_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download
M ui/keyboard/keyboard_switches.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_switches.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 56 (14 generated)
rsadam
Hi Flackr, PTAL!
6 years, 2 months ago (2014-09-30 20:51:52 UTC) #2
rsadam
Hi flackr, PTAL! This assumes that cl 618283003 lands.
6 years, 2 months ago (2014-10-02 22:57:16 UTC) #3
flackr
https://codereview.chromium.org/613343005/diff/40001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/40001/ash/virtual_keyboard_controller.cc#newcode47 ash/virtual_keyboard_controller.cc:47: // Traverse active devices and record the presence of ...
6 years, 2 months ago (2014-10-04 01:02:54 UTC) #4
rsadam
https://codereview.chromium.org/613343005/diff/40001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/40001/ash/virtual_keyboard_controller.cc#newcode47 ash/virtual_keyboard_controller.cc:47: // Traverse active devices and record the presence of ...
6 years, 2 months ago (2014-10-23 20:10:52 UTC) #5
rsadam
Add check so that the keyboard is not displayed while testing on Desktop.
6 years, 2 months ago (2014-10-23 21:24:06 UTC) #6
flackr
Looks good, can't wait to see it in action. Add TEST= line to description listing ...
6 years, 2 months ago (2014-10-24 14:54:24 UTC) #7
rsadam
Updated TESTS=. https://codereview.chromium.org/613343005/diff/100001/ash/virtual_keyboard_controller.h File ash/virtual_keyboard_controller.h (right): https://codereview.chromium.org/613343005/diff/100001/ash/virtual_keyboard_controller.h#newcode14 ash/virtual_keyboard_controller.h:14: // This class observes enter/leaving maximized mode ...
6 years, 2 months ago (2014-10-24 15:32:32 UTC) #8
rsadam
I think part of the issue was that we needed this class to be created ...
6 years, 2 months ago (2014-10-24 15:33:44 UTC) #9
rsadam
Hey Rob, I took a different crack at it - I think this approach is ...
6 years, 2 months ago (2014-10-24 17:16:47 UTC) #10
rsadam
Changed it so we preserve the old behavior during testing.
6 years, 2 months ago (2014-10-24 18:15:52 UTC) #11
flackr
https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc#newcode96 ash/virtual_keyboard_controller.cc:96: ->IsMaximizeModeWindowManagerEnabled()); This would have already been done by OnMaximizeModeStarted ...
6 years, 1 month ago (2014-10-27 15:20:38 UTC) #12
flackr
https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc#newcode90 ash/virtual_keyboard_controller.cc:90: // Updates the keyboard state. Move function comments to ...
6 years, 1 month ago (2014-10-27 15:33:13 UTC) #13
rsadam
https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/220001/ash/virtual_keyboard_controller.cc#newcode90 ash/virtual_keyboard_controller.cc:90: // Updates the keyboard state. On 2014/10/27 15:33:12, flackr ...
6 years, 1 month ago (2014-10-27 15:51:19 UTC) #14
flackr
https://codereview.chromium.org/613343005/diff/240001/ash/virtual_keyboard_controller.h File ash/virtual_keyboard_controller.h (right): https://codereview.chromium.org/613343005/diff/240001/ash/virtual_keyboard_controller.h#newcode32 ash/virtual_keyboard_controller.h:32: // Determines the active input devices. nit: Descriptive comments ...
6 years, 1 month ago (2014-10-27 19:05:02 UTC) #15
rsadam
https://codereview.chromium.org/613343005/diff/240001/ash/virtual_keyboard_controller.h File ash/virtual_keyboard_controller.h (right): https://codereview.chromium.org/613343005/diff/240001/ash/virtual_keyboard_controller.h#newcode32 ash/virtual_keyboard_controller.h:32: // Determines the active input devices. On 2014/10/27 19:05:02, ...
6 years, 1 month ago (2014-10-27 19:51:42 UTC) #16
flackr
LGTM nit: Update TEST= to match new test names
6 years, 1 month ago (2014-10-27 19:58:09 UTC) #17
rsadam
On 2014/10/27 19:58:09, flackr wrote: > LGTM > > nit: Update TEST= to match new ...
6 years, 1 month ago (2014-10-27 20:00:03 UTC) #18
rsadam
+sky for OWNERS
6 years, 1 month ago (2014-10-27 20:01:31 UTC) #20
sky
LGTM https://codereview.chromium.org/613343005/diff/260001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/260001/ash/virtual_keyboard_controller.cc#newcode56 ash/virtual_keyboard_controller.cc:56: std::vector<ui::TouchscreenDevice> screens = nit: remove this local and ...
6 years, 1 month ago (2014-10-27 20:28:33 UTC) #21
rsadam
https://codereview.chromium.org/613343005/diff/260001/ash/virtual_keyboard_controller.cc File ash/virtual_keyboard_controller.cc (right): https://codereview.chromium.org/613343005/diff/260001/ash/virtual_keyboard_controller.cc#newcode56 ash/virtual_keyboard_controller.cc:56: std::vector<ui::TouchscreenDevice> screens = On 2014/10/27 20:28:33, sky wrote: > ...
6 years, 1 month ago (2014-10-28 15:07:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613343005/280001
6 years, 1 month ago (2014-10-28 15:08:35 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/85004) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/74595) android_aosp ...
6 years, 1 month ago (2014-10-28 15:11:48 UTC) #26
rsadam
Fixed merge conflicts.
6 years, 1 month ago (2014-10-28 15:54:12 UTC) #27
rsadam
+mpearson for histogram OWNERS
6 years, 1 month ago (2014-10-28 16:51:32 UTC) #29
rsadam
Accidentally added mpearson@google as reviewer. Changed to mpearson@chromium.
6 years, 1 month ago (2014-10-28 16:52:16 UTC) #31
Mark P
histograms.xml lgtm
6 years, 1 month ago (2014-10-28 16:56:03 UTC) #32
rsadam
Add EVENTS export to support win compiler.
6 years, 1 month ago (2014-10-28 17:37:18 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613343005/340001
6 years, 1 month ago (2014-10-28 17:38:40 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/29059)
6 years, 1 month ago (2014-10-28 18:49:53 UTC) #37
rsadam
Use EVENTS_BASE_EXPORT instead of EVENTS_EXPORT.
6 years, 1 month ago (2014-10-28 19:41:27 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613343005/380001
6 years, 1 month ago (2014-10-28 19:43:05 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/23999)
6 years, 1 month ago (2014-10-29 00:58:27 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613343005/380001
6 years, 1 month ago (2014-10-29 02:54:50 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/24074)
6 years, 1 month ago (2014-10-29 06:14:00 UTC) #47
rsadam
Made the VirtualKeyboardController ChromeOS only. The DeviceDataManager that this class calls is not created on ...
6 years, 1 month ago (2014-10-29 17:20:30 UTC) #48
sky
There is nothing really chromeos specific about this code, right? It's just you don't want ...
6 years, 1 month ago (2014-10-29 19:16:50 UTC) #49
rsadam
Done!
6 years, 1 month ago (2014-10-29 19:48:51 UTC) #50
rsadam
Fix typo. s/virtual_keyboard/virtual_keyboard_controller
6 years, 1 month ago (2014-10-29 20:42:22 UTC) #51
sky
LGTM
6 years, 1 month ago (2014-10-29 21:12:48 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/613343005/460001
6 years, 1 month ago (2014-10-29 22:07:15 UTC) #54
commit-bot: I haz the power
Committed patchset #23 (id:460001)
6 years, 1 month ago (2014-10-29 23:37:48 UTC) #55
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 23:38:51 UTC) #56
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/9172bc8ad1c0514a1f0041a791dfbe9ef4549f36
Cr-Commit-Position: refs/heads/master@{#301977}

Powered by Google App Engine
This is Rietveld 408576698