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

Issue 2122873002: Add virtualKeyboardPrivate.onKeyboardClosed API. (Closed)

Created:
4 years, 5 months ago by Azure Wei
Modified:
4 years, 3 months ago
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add virtualKeyboardPrivate.onKeyboardClosed API The added API will be fired when the virtual keyboard window has been closed, for example, this can happen when turning off on-screen keyboard or exiting tablet mode. IME extensions rely on input view's visibility changing event to do some work such as hide candidate window. While, when exiting tablet mode, OS will close input view window immediately but doesn't fire 'unload' event, so the IME extensions won't receive the visibility changed event. Thus, we add this API to notify the extensions the keyboard closed event. BUG=619763 TEST=KeyboardControllerTest.CloseKeyboard Committed: https://crrev.com/169fcec510510b51122341c9471730f8a7b1c029 Cr-Commit-Position: refs/heads/master@{#418603}

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 #

Total comments: 4

Patch Set 4 : Updated as onKeyboardClosed. #

Patch Set 5 : Change OnKeyboardClosed as pure virtual method. #

Total comments: 1

Patch Set 6 #

Total comments: 2

Patch Set 7 : Add test #

Patch Set 8 : Fix test error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -3 lines) Patch
M ash/app_list/app_list_presenter_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/wm/panels/panel_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/wm/system_modal_container_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm/system_modal_container_layout_manager.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/lock_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/lock_layout_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_keyboard_ui.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M components/arc/ime/arc_ime_service.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/ime/arc_ime_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/extension_event_histogram_value.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/virtual_keyboard_private.json View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller_observer.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller_unittest.cc View 1 2 3 4 5 6 6 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (24 generated)
Azure Wei
Please review this cl. Thanks!
4 years, 5 months ago (2016-07-05 12:04:45 UTC) #3
sky
https://codereview.chromium.org/2122873002/diff/20001/chrome/browser/ui/ash/chrome_keyboard_ui.cc File chrome/browser/ui/ash/chrome_keyboard_ui.cc (right): https://codereview.chromium.org/2122873002/diff/20001/chrome/browser/ui/ash/chrome_keyboard_ui.cc#newcode120 chrome/browser/ui/ash/chrome_keyboard_ui.cc:120: std::move(args))); nit: std::move(args)->base::WrapUnique(new base::ListValue())). https://codereview.chromium.org/2122873002/diff/20001/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/2122873002/diff/20001/ui/keyboard/keyboard_controller.cc#newcode188 ...
4 years, 5 months ago (2016-07-06 16:03:00 UTC) #4
Ilya Sherman
histograms.xml lgtm
4 years, 5 months ago (2016-07-06 22:51:15 UTC) #5
Azure Wei
https://codereview.chromium.org/2122873002/diff/20001/chrome/browser/ui/ash/chrome_keyboard_ui.cc File chrome/browser/ui/ash/chrome_keyboard_ui.cc (right): https://codereview.chromium.org/2122873002/diff/20001/chrome/browser/ui/ash/chrome_keyboard_ui.cc#newcode120 chrome/browser/ui/ash/chrome_keyboard_ui.cc:120: std::move(args))); On 2016/07/06 16:03:00, sky wrote: > nit: std::move(args)->base::WrapUnique(new ...
4 years, 5 months ago (2016-07-08 06:35:24 UTC) #6
sky
LGTM
4 years, 5 months ago (2016-07-08 15:43:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122873002/40001
4 years, 5 months ago (2016-07-12 00:38:48 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/215607)
4 years, 5 months ago (2016-07-12 00:52:30 UTC) #12
Azure Wei
R+ Devlin for owner of: common/api/virtual_keyboard_private.json
4 years, 5 months ago (2016-07-12 01:04:58 UTC) #14
Shu Chen
lgtm
4 years, 5 months ago (2016-07-14 01:56:16 UTC) #15
Devlin
https://codereview.chromium.org/2122873002/diff/40001/extensions/common/api/virtual_keyboard_private.json File extensions/common/api/virtual_keyboard_private.json (right): https://codereview.chromium.org/2122873002/diff/40001/extensions/common/api/virtual_keyboard_private.json#newcode247 extensions/common/api/virtual_keyboard_private.json:247: "name": "onKeyboardDestroyed", "Destroyed" is kind of a weird name ...
4 years, 5 months ago (2016-07-14 17:44:51 UTC) #16
Azure Wei
https://codereview.chromium.org/2122873002/diff/40001/extensions/common/api/virtual_keyboard_private.json File extensions/common/api/virtual_keyboard_private.json (right): https://codereview.chromium.org/2122873002/diff/40001/extensions/common/api/virtual_keyboard_private.json#newcode247 extensions/common/api/virtual_keyboard_private.json:247: "name": "onKeyboardDestroyed", On 2016/07/14 17:44:51, Devlin wrote: > "Destroyed" ...
4 years, 5 months ago (2016-07-15 15:52:31 UTC) #25
Devlin
extensions lgtm with nit. https://codereview.chromium.org/2122873002/diff/80001/extensions/common/api/virtual_keyboard_private.json File extensions/common/api/virtual_keyboard_private.json (right): https://codereview.chromium.org/2122873002/diff/80001/extensions/common/api/virtual_keyboard_private.json#newcode249 extensions/common/api/virtual_keyboard_private.json:249: "description": "Fired when the virtual ...
4 years, 5 months ago (2016-07-15 16:00:17 UTC) #26
Azure Wei
+jochen@ for owner of components/arc/ime/arc_ime_service.h
4 years, 5 months ago (2016-07-18 02:37:30 UTC) #28
jochen (gone - plz use gerrit)
The CL description doesn't match the actual implementation name. Please add a test. https://codereview.chromium.org/2122873002/diff/100001/components/arc/ime/arc_ime_service.h File ...
4 years, 5 months ago (2016-07-18 11:32:02 UTC) #29
Azure Wei
On 2016/07/18 11:32:02, jochen wrote: > The CL description doesn't match the actual implementation name. ...
4 years, 3 months ago (2016-09-14 07:09:12 UTC) #31
Azure Wei
https://codereview.chromium.org/2122873002/diff/100001/components/arc/ime/arc_ime_service.h File components/arc/ime/arc_ime_service.h (right): https://codereview.chromium.org/2122873002/diff/100001/components/arc/ime/arc_ime_service.h#newcode73 components/arc/ime/arc_ime_service.h:73: void OnKeyboardClosed() override {} On 2016/07/18 11:32:02, jochen wrote: ...
4 years, 3 months ago (2016-09-14 07:09:27 UTC) #32
jochen (gone - plz use gerrit)
please reformat the CL description according to chromium.org/developers/contributing-code#Writing_change_list_descriptions lgtm with that
4 years, 3 months ago (2016-09-14 08:54:33 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122873002/120001
4 years, 3 months ago (2016-09-14 13:08:49 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/235362)
4 years, 3 months ago (2016-09-14 13:59:47 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122873002/140001
4 years, 3 months ago (2016-09-14 15:56:02 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-14 17:31:36 UTC) #44
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 17:34:50 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/169fcec510510b51122341c9471730f8a7b1c029
Cr-Commit-Position: refs/heads/master@{#418603}

Powered by Google App Engine
This is Rietveld 408576698