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

Issue 2795503002: mash: Don't synthesize extra key press events in the window server (Closed)

Created:
3 years, 8 months ago by James Cook
Modified:
3 years, 8 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, Peng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Don't synthesize extra key press events in the window server This fixes a bug where pressing tab would move focus forward by two UI elements. There was a workaround in PlatformDisplayDefault that would synthesize a duplicate ET_KEY_PRESSED for every key down in order to emulate Windows WM_CHAR synthesis. See https://codereview.chromium.org/1234623004 The workaround isn't needed on mash, so I removed it. I added a unit test, which required some small changes to PlatformDisplayDefault and OzonePlatform. Allowed the ui::ImageCursors parameter to be null because the test harness does not provide the resource bundle needed for cursors. Revert a workaround in InputMethodBridge for these synthesized events, see https://codereview.chromium.org/2576973003/ BUG=706574, 707055 TEST=added to mus_ws_unittests Review-Url: https://codereview.chromium.org/2795503002 Cr-Commit-Position: refs/heads/master@{#463036} Committed: https://chromium.googlesource.com/chromium/src/+/60a7c584a9bef913195fc68ebfae2968f7be9b88

Patch Set 1 #

Patch Set 2 : utility #

Total comments: 1

Patch Set 3 : . #

Patch Set 4 : rebase #

Patch Set 5 : comments #

Patch Set 6 : Add OzonePlatform::Shutdown #

Total comments: 3

Patch Set 7 : rebase #

Patch Set 8 : remove InputMethodBridge workaround #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -52 lines) Patch
M chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M services/ui/service.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/ws/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/display.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M services/ui/ws/platform_display_default.h View 2 chunks +3 lines, -3 lines 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 4 7 chunks +15 lines, -39 lines 0 comments Download
A services/ui/ws/platform_display_default_unittest.cc View 1 2 3 4 1 chunk +153 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_delegate.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura/env.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/public/ozone_platform.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/public/ozone_platform.cc View 1 2 3 4 5 4 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 55 (34 generated)
James Cook
erg, please take a look. I tried to test this manually on Linux Ozone, with ...
3 years, 8 months ago (2017-03-31 23:31:20 UTC) #9
tonikitoo
In the commit message: PlatformWindowDefault -> PlatformDisplayDefault
3 years, 8 months ago (2017-04-01 15:49:53 UTC) #17
James Cook
On 2017/04/01 15:49:53, tonikitoo wrote: > In the commit message: PlatformWindowDefault -> PlatformDisplayDefault Fixed commit ...
3 years, 8 months ago (2017-04-01 16:51:25 UTC) #19
Elliot Glaysher
lgtm
3 years, 8 months ago (2017-04-04 17:11:35 UTC) #20
James Cook
rjkroege, can I get OWNERS for ui/ozone?
3 years, 8 months ago (2017-04-04 23:46:03 UTC) #22
James Cook
On 2017/04/04 23:46:03, James Cook wrote: > rjkroege, can I get OWNERS for ui/ozone? rjkroege, ...
3 years, 8 months ago (2017-04-06 17:54:57 UTC) #27
rjkroege
On 2017/04/06 17:54:57, James Cook wrote: > On 2017/04/04 23:46:03, James Cook wrote: > > ...
3 years, 8 months ago (2017-04-06 20:01:55 UTC) #28
James Cook
Rob, I implemented your suggestion. See latest patchset. However, there's another problem. OzonePlatform is a ...
3 years, 8 months ago (2017-04-06 22:57:51 UTC) #29
James Cook
On 2017/04/06 22:57:51, James Cook wrote: > Rob, I implemented your suggestion. See latest patchset. ...
3 years, 8 months ago (2017-04-06 23:21:25 UTC) #30
James Cook
rjkroege, please take another look. This works and doesn't seem too ugly to me.
3 years, 8 months ago (2017-04-07 00:33:54 UTC) #33
tonikitoo
On 2017/04/06 23:21:25, James Cook wrote: > On 2017/04/06 22:57:51, James Cook wrote: > > ...
3 years, 8 months ago (2017-04-07 14:12:58 UTC) #38
James Cook
On 2017/04/07 14:12:58, tonikitoo wrote: > On 2017/04/06 23:21:25, James Cook wrote: > > On ...
3 years, 8 months ago (2017-04-07 14:19:31 UTC) #40
rjkroege
thanks very much. lgtm
3 years, 8 months ago (2017-04-07 15:12:37 UTC) #41
James Cook
sky, can I get OWNERS for ui/aura/env.cc?
3 years, 8 months ago (2017-04-07 15:32:02 UTC) #43
tonikitoo
https://codereview.chromium.org/2795503002/diff/120001/ui/ozone/public/ozone_platform.cc File ui/ozone/public/ozone_platform.cc (right): https://codereview.chromium.org/2795503002/diff/120001/ui/ozone/public/ozone_platform.cc#newcode83 ui/ozone/public/ozone_platform.cc:83: // TODO(spang): Currently need to leak this object. delete ...
3 years, 8 months ago (2017-04-07 15:48:40 UTC) #44
rjkroege
On 2017/04/07 15:48:40, tonikitoo wrote: > https://codereview.chromium.org/2795503002/diff/120001/ui/ozone/public/ozone_platform.cc > File ui/ozone/public/ozone_platform.cc (right): > > https://codereview.chromium.org/2795503002/diff/120001/ui/ozone/public/ozone_platform.cc#newcode83 > ...
3 years, 8 months ago (2017-04-07 15:51:06 UTC) #45
tonikitoo
https://codereview.chromium.org/2795503002/diff/120001/services/ui/ws/platform_display_default.cc File services/ui/ws/platform_display_default.cc (left): https://codereview.chromium.org/2795503002/diff/120001/services/ui/ws/platform_display_default.cc#oldcode197 services/ui/ws/platform_display_default.cc:197: #if defined(USE_X11) || defined(USE_OZONE) Sorry for being picky here, ...
3 years, 8 months ago (2017-04-07 17:48:54 UTC) #46
sky
env LGTM
3 years, 8 months ago (2017-04-07 19:18:31 UTC) #47
James Cook
+penghuang just FYI https://codereview.chromium.org/2795503002/diff/120001/services/ui/ws/platform_display_default.cc File services/ui/ws/platform_display_default.cc (left): https://codereview.chromium.org/2795503002/diff/120001/services/ui/ws/platform_display_default.cc#oldcode197 services/ui/ws/platform_display_default.cc:197: #if defined(USE_X11) || defined(USE_OZONE) On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 21:17:51 UTC) #49
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/2795503002/160001
3 years, 8 months ago (2017-04-07 21:18:42 UTC) #52
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 23:09:31 UTC) #55
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/60a7c584a9bef913195fc68ebfae...

Powered by Google App Engine
This is Rietveld 408576698