|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by Azure Wei Modified:
4 years, 1 month ago Reviewers:
tdanderson CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, kalyank Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd virtual keyboard item into opt-in IME menu.
The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state.
Make ImeMenuTray listens on the virtual keyboard state to show the toggle.
Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble.
BUG=668013
TEST=Verified on local build.
Committed: https://crrev.com/1fb9e7720d5a4ddaef6ce257f4d252a831bea688
Cr-Commit-Position: refs/heads/master@{#434127}
Patch Set 1 #
Total comments: 2
Patch Set 2 : sync #Patch Set 3 : Register observer. #
Total comments: 6
Patch Set 4 #
Messages
Total messages: 29 (18 generated)
Description was changed from ========== Add virtual keyboard item into opt-in IME menu. BUG=657146 TEST=Verified on local build. ========== to ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=657146 TEST=Verified on local build. ==========
azurewei@chromium.org changed reviewers: + tdanderson@chromium.org
Please review this CL. Thanks!
The CQ bit was checked by azurewei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:411: return keyboard_suppressed_ && I left the following comment in https://chromiumcodereview.appspot.com/2469663002/: "I went into non-MD mode on canary, plugged in an external keyboard, and entered touchview (maximize mode). When I go into the IME detailed view I see a "disable on-screen keyboard" button, and when I tap it it turns into an "enable on-screen keyboard" button. So the toggle row needs to be shown regardless of whether the toggle state is on or off." With that said, I don't think you are doing the right thing in this CL. To avoid any confusion, let's iterate on and land https://chromiumcodereview.appspot.com/2469663002/ first and then we can come back to this CL.
On 2016/11/03 21:17:20, tdanderson wrote: > https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... > File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): > > https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... > ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:411: return > keyboard_suppressed_ && > I left the following comment in > https://chromiumcodereview.appspot.com/2469663002/: > > "I went into non-MD mode on canary, plugged in an external keyboard, and entered > touchview (maximize mode). When I go into the IME detailed view I see a "disable > on-screen keyboard" button, and when I tap it it turns into an "enable on-screen > keyboard" button. So the toggle row needs to be shown regardless of whether the > toggle state is on or off." > > With that said, I don't think you are doing the right thing in this CL. To avoid > any confusion, let's iterate on and land > https://chromiumcodereview.appspot.com/2469663002/ first and then we can come > back to this CL. Hi, just a friendly ping on this - let me know when this is ready for me to look at again.
The CQ bit was checked by azurewei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Uploaded a new patch synced with the latest codes. Please take another look. Thanks! https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2474843002/diff/1/ash/common/system/chromeos/... ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:411: return keyboard_suppressed_ && On 2016/11/03 21:17:20, tdanderson wrote: > I left the following comment in > https://chromiumcodereview.appspot.com/2469663002/: > > "I went into non-MD mode on canary, plugged in an external keyboard, and entered > touchview (maximize mode). When I go into the IME detailed view I see a "disable > on-screen keyboard" button, and when I tap it it turns into an "enable on-screen > keyboard" button. So the toggle row needs to be shown regardless of whether the > toggle state is on or off." > > With that said, I don't think you are doing the right thing in this CL. To avoid > any confusion, let's iterate on and land > https://chromiumcodereview.appspot.com/2469663002/ first and then we can come > back to this CL. The method return true when the 'smart deploy toggle' should be shown: If the user is in TouchView (virtual keyboard should be automatically deployed if IsVirtualKeyboardEnabled() is false) and an external keyboard attached (keyboard_suppressed_ is true). If the keyboard toggle is shown, turn on or off the toggle should not change the returned value of this method.
LGTM https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:555: if (suppressed != keyboard_suppressed_ && bubble_) Is this something the IME detailed view OnKeyboardSuppressionChanged() should be doing too? (Just curious, no need to address it in this CL.) https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... File ash/common/system/chromeos/ime_menu/ime_menu_tray.h (right): https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.h:2: // Use of this source code is governed by a BSD-style license that can be nit: can you file a new bug for this and use it as the BUG= number in the cl description? I already requested a merge for another CL in 657146 and if we want to merge this back to 56 it should have a separate bug number. https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.h:59: // Returns whether the virtual keyboard toggle should be shown in the detailed nit: "shown in the opt-in IME menu" rather than 'detailed view'
https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:555: if (suppressed != keyboard_suppressed_ && bubble_) On 2016/11/23 03:08:40, tdanderson wrote: > Is this something the IME detailed view OnKeyboardSuppressionChanged() should be > doing too? (Just curious, no need to address it in this CL.) Yes, IME detailed view shares the same logic. I used to try to move this to ImeListView so ImeMenuTray and TrayIME don't need to care the refreshing logic for VK toggle. But it's hard to implement on ImeMenuTray since the height of ImeMenuTray should be changed when the number of items changed. So I just put the OnKeyboardSuppressionChanged() logic here instead of in ImeListView. https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... File ash/common/system/chromeos/ime_menu/ime_menu_tray.h (right): https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.h:59: // Returns whether the virtual keyboard toggle should be shown in the detailed On 2016/11/23 03:08:40, tdanderson wrote: > nit: "shown in the opt-in IME menu" rather than 'detailed view' Done.
The CQ bit was checked by azurewei@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=657146 TEST=Verified on local build. ========== to ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=657146, 668013 TEST=Verified on local build. ==========
Description was changed from ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=657146, 668013 TEST=Verified on local build. ========== to ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=668013 TEST=Verified on local build. ==========
https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... File ash/common/system/chromeos/ime_menu/ime_menu_tray.h (right): https://codereview.chromium.org/2474843002/diff/40001/ash/common/system/chrom... ash/common/system/chromeos/ime_menu/ime_menu_tray.h:2: // Use of this source code is governed by a BSD-style license that can be On 2016/11/23 03:08:40, tdanderson wrote: > nit: can you file a new bug for this and use it as the BUG= number in the cl > description? I already requested a merge for another CL in 657146 and if we want > to merge this back to 56 it should have a separate bug number. Done. Created bug:668013 and updated the CL description. Thanks for the advice.
The CQ bit was checked by azurewei@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tdanderson@chromium.org Link to the patchset: https://codereview.chromium.org/2474843002/#ps60001 (title: "")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1479878917724950,
"parent_rev": "30edfe31a76250dc38a3bbd615ef417f7f823f49", "commit_rev":
"b5545a50489440495899184a58d057a4b6eff736"}
Message was sent while issue was closed.
Description was changed from ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=668013 TEST=Verified on local build. ========== to ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=668013 TEST=Verified on local build. ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=668013 TEST=Verified on local build. ========== to ========== Add virtual keyboard item into opt-in IME menu. The 'Smart deploy toggle' is always hidden in opt-in IME menu. We should show/hide it based on the vr and devices state. Make ImeMenuTray listens on the virtual keyboard state to show the toggle. Currently the ImeMenuBubble doesn't support update UI. So if there's state change (which leads to UI change) of the VK, just hide the bubble. BUG=668013 TEST=Verified on local build. Committed: https://crrev.com/1fb9e7720d5a4ddaef6ce257f4d252a831bea688 Cr-Commit-Position: refs/heads/master@{#434127} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/1fb9e7720d5a4ddaef6ce257f4d252a831bea688 Cr-Commit-Position: refs/heads/master@{#434127} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
