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

Issue 2815023002: [System-Keyboard-Lock] Add KeyboardLockHost and KeyEventInterceptor (Closed)

Created:
3 years, 8 months ago by Hzj_jie
Modified:
3 years, 4 months ago
Reviewers:
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[System-Keyboard-Lock] Add KeyboardLockHost and KeyEventFilter This change starts KeyboardLock component, which is an object in browser process (Browser object) to receive requestKeyboardLock() and cancelKeyboardLock() requests from web pages, monitor web frame states, receive low level key events and forward to corresponding web pages. KeyEventFilter is an interface to receive low level key events, which is used by low level key event callback on Windows and Mac OS, and PlatformEventSource on Linux, to deliver the key events directly to the web page. For detail, please refer to the design doc at, https://docs.google.com/document/d/1T9gJHYdA1VGZ6QHQeOu0hOacWWWJ7yNEt1VDbLju4bs/edit#heading=h.cgwemqs2j4ta W3C Working Draft: https://garykac.github.io/system-keyboard-lock/ Intent to implement: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/9pauQUAvrcw/lfbG7eunCAAJ A prototype can be found at, https://codereview.chromium.org/2879033002 BUG=680809

Patch Set 1 #

Total comments: 10

Patch Set 2 : Resolve review comments #

Total comments: 4

Patch Set 3 : More comments #

Total comments: 16

Patch Set 4 : Resolve review comments #

Patch Set 5 : Remove useless changes #

Patch Set 6 : Use NativeKeycode instead of ui::KeyboardCode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -0 lines) Patch
M components/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/keyboard_lock/BUILD.gn View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A components/keyboard_lock/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A components/keyboard_lock/OWNERS View 1 chunk +3 lines, -0 lines 0 comments Download
A components/keyboard_lock/key_event_filter.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A components/keyboard_lock/keyboard_lock_host.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A components/keyboard_lock/keyboard_lock_host.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A components/keyboard_lock/keyboard_lock_host_unittest.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
A components/keyboard_lock/keyboard_lock_types.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 102 (79 generated)
Hzj_jie
Since this change impacts ui/events, and it's also part of input pipeline, Dave and Chong, ...
3 years, 8 months ago (2017-04-12 22:23:12 UTC) #13
Hzj_jie
On 2017/04/12 22:23:12, Hzj_jie wrote: > Since this change impacts ui/events, and it's also part ...
3 years, 8 months ago (2017-04-13 20:38:50 UTC) #16
Hzj_jie
On 2017/04/13 20:38:50, Hzj_jie wrote: > On 2017/04/12 22:23:12, Hzj_jie wrote: > > Since this ...
3 years, 8 months ago (2017-04-14 18:21:21 UTC) #18
Hzj_jie
It looks like Dave, Chong and Sadrul are busy these days. Maybe we can start ...
3 years, 8 months ago (2017-04-17 21:38:19 UTC) #25
blundell
On 2017/04/17 21:38:19, Hzj_jie wrote: > It looks like Dave, Chong and Sadrul are busy ...
3 years, 8 months ago (2017-04-18 13:31:38 UTC) #26
dtapuska
https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/key_event_interceptor_installer.cc File components/keyboard_lock/key_event_interceptor_installer.cc (right): https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/key_event_interceptor_installer.cc#newcode17 components/keyboard_lock/key_event_interceptor_installer.cc:17: host->SetKeyEventInterceptor(std::unique_ptr<KeyEventInterceptor>(this)); I'd think this is dangerous. What happens if ...
3 years, 8 months ago (2017-04-18 13:43:17 UTC) #28
Hzj_jie
On 2017/04/18 13:31:38, blundell wrote: > On 2017/04/17 21:38:19, Hzj_jie wrote: > > It looks ...
3 years, 8 months ago (2017-04-18 21:48:59 UTC) #29
Hzj_jie
https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/key_event_interceptor_installer.cc File components/keyboard_lock/key_event_interceptor_installer.cc (right): https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/key_event_interceptor_installer.cc#newcode17 components/keyboard_lock/key_event_interceptor_installer.cc:17: host->SetKeyEventInterceptor(std::unique_ptr<KeyEventInterceptor>(this)); On 2017/04/18 13:43:17, dtapuska wrote: > I'd think ...
3 years, 8 months ago (2017-04-19 00:46:26 UTC) #42
blundell
"All platforms" here means "including Android WebView"? If so, that is indeed a perfect reason ...
3 years, 8 months ago (2017-04-19 09:06:26 UTC) #45
Hzj_jie
On 2017/04/19 09:06:26, blundell wrote: > "All platforms" here means "including Android WebView"? If so, ...
3 years, 8 months ago (2017-04-19 17:39:45 UTC) #46
Hzj_jie
Dave, any other suggestion for this change?
3 years, 8 months ago (2017-04-20 21:24:38 UTC) #48
dtapuska
https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc File components/keyboard_lock/keyboard_lock_host.cc (right): https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc#newcode41 components/keyboard_lock/keyboard_lock_host.cc:41: base::AutoLock lock(lock_); On 2017/04/19 00:46:26, Hzj_jie wrote: > On ...
3 years, 8 months ago (2017-04-21 14:48:34 UTC) #49
Hzj_jie
https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc File components/keyboard_lock/keyboard_lock_host.cc (right): https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc#newcode41 components/keyboard_lock/keyboard_lock_host.cc:41: base::AutoLock lock(lock_); On 2017/04/21 14:48:33, dtapuska wrote: > On ...
3 years, 8 months ago (2017-04-21 21:13:09 UTC) #50
Hzj_jie
On 2017/04/21 21:13:09, Hzj_jie wrote: > https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc > File components/keyboard_lock/keyboard_lock_host.cc (right): > > https://codereview.chromium.org/2815023002/diff/60001/components/keyboard_lock/keyboard_lock_host.cc#newcode41 > ...
3 years, 8 months ago (2017-04-24 21:07:43 UTC) #55
Hzj_jie
More comments?
3 years, 8 months ago (2017-04-25 19:28:10 UTC) #56
Hzj_jie
Talked offline with Dave and Wez to involve Wez in this change.
3 years, 8 months ago (2017-04-25 19:47:59 UTC) #58
Wez
Some initial comments, but I need to read through the design properly before I continue ...
3 years, 7 months ago (2017-04-28 00:22:45 UTC) #59
Hzj_jie
https://codereview.chromium.org/2815023002/diff/140001/components/keyboard_lock/key_event_interceptor.h File components/keyboard_lock/key_event_interceptor.h (right): https://codereview.chromium.org/2815023002/diff/140001/components/keyboard_lock/key_event_interceptor.h#newcode15 components/keyboard_lock/key_event_interceptor.h:15: class KeyEventInterceptor { On 2017/04/28 00:22:44, Wez wrote: > ...
3 years, 7 months ago (2017-04-28 20:02:03 UTC) #60
Hzj_jie
Hi, Wez, Thank you for your suggestion on the design doc. I have updated the ...
3 years, 6 months ago (2017-06-08 00:42:54 UTC) #93
Wez
Will do, but I'm afraid not until later-on tomorrow. On 7 June 2017 at 17:42, ...
3 years, 6 months ago (2017-06-08 08:11:20 UTC) #96
Hzj_jie
On 2017/06/08 08:11:20, Wez wrote: > Will do, but I'm afraid not until later-on tomorrow. ...
3 years, 6 months ago (2017-06-14 03:03:16 UTC) #97
Hzj_jie
After a long design discussion, we finally can restart the code reviewing process of the ...
3 years, 4 months ago (2017-08-11 18:39:26 UTC) #100
Hzj_jie
3 years, 4 months ago (2017-08-17 23:52:36 UTC) #102
Message was sent while issue was closed.
On 2017/08/11 18:39:26, Hzj_jie wrote:
> After a long design discussion, we finally can restart the code reviewing
> process of the feature.
> 
> Gary, this change is not impacted by the issue we left about the IME. Please
> take a look.
> Jochen, this change requires owners of components/ folder to sign off. But the
> original reviewer Colin is OOO recently.
> 
> Thank you.

This cursed change has been abandoned.

Powered by Google App Engine
This is Rietveld 408576698