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

Issue 16959002: Spatial navigation enhancements (Closed)

Created:
7 years, 6 months ago by Krzysztof Olczyk
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, adamk+blink_chromium.org, Mostyn Bramley-Moore
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

This patch improves the user experience when using spatial navigation (enabled in https://codereview.chromium.org/13811041 and https://codereview.chromium.org/14110006 ): - Dispatch onClick when pressing ENTER or SPACE on any element (not only input buttons as it was before the patch) - Make HTMLElement focusable by spatnav if it has click or key events (before it could only navigate to links and form items). The changes are effective only if spatialNavigationEnabled pref is enabled. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152930

Patch Set 1 #

Total comments: 7

Patch Set 2 : Applied changes suggested by code reviewer. #

Total comments: 2

Patch Set 3 : Another round of changes after review comments #

Patch Set 4 : Rebasing to newer HEAD #

Total comments: 2

Patch Set 5 : Added null checks for document()->settings() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M Source/core/dom/KeyboardEvent.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLElement.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 2 3 4 5 chunks +43 lines, -1 line 0 comments Download
M public/web/WebSettings.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Krzysztof Olczyk
7 years, 6 months ago (2013-06-13 11:20:27 UTC) #1
Krzysztof Olczyk
Dear tkent and morrita1, I'm adding you as the reviewers as I have found you ...
7 years, 6 months ago (2013-06-14 07:48:27 UTC) #2
esprehn
https://codereview.chromium.org/16959002/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/16959002/diff/1/Source/core/html/HTMLElement.cpp#newcode605 Source/core/html/HTMLElement.cpp:605: EventTarget* target = const_cast<HTMLElement*>(element); I don't understand why you ...
7 years, 6 months ago (2013-06-14 08:01:24 UTC) #3
Hajime Morrita
Any idea about testing? Seems like we can add an Internals API to toggle the ...
7 years, 6 months ago (2013-06-14 08:09:48 UTC) #4
Krzysztof Olczyk
On 2013/06/14 08:01:24, esprehn wrote: > https://codereview.chromium.org/16959002/diff/1/Source/core/html/HTMLElement.cpp > File Source/core/html/HTMLElement.cpp (right): > > https://codereview.chromium.org/16959002/diff/1/Source/core/html/HTMLElement.cpp#newcode605 > ...
7 years, 6 months ago (2013-06-14 09:46:52 UTC) #5
tkent
https://codereview.chromium.org/16959002/diff/8001/Source/core/dom/KeyboardEvent.h File Source/core/dom/KeyboardEvent.h (right): https://codereview.chromium.org/16959002/diff/8001/Source/core/dom/KeyboardEvent.h#newcode128 Source/core/dom/KeyboardEvent.h:128: ASSERT_WITH_SECURITY_IMPLICATION(event && event->isKeyboardEvent()); We usually allow NULL argument for ...
7 years, 6 months ago (2013-06-16 22:50:24 UTC) #6
Krzysztof Olczyk
> https://codereview.chromium.org/16959002/diff/8001/Source/core/dom/KeyboardEvent.h > File Source/core/dom/KeyboardEvent.h (right): > > https://codereview.chromium.org/16959002/diff/8001/Source/core/dom/KeyboardEvent.h#newcode128 > Source/core/dom/KeyboardEvent.h:128: ASSERT_WITH_SECURITY_IMPLICATION(event && > event->isKeyboardEvent()); ...
7 years, 6 months ago (2013-06-17 12:04:05 UTC) #7
esprehn
On 2013/06/17 12:04:05, Krzysztof Olczyk wrote: > ... > > > https://codereview.chromium.org/16959002/diff/8001/Source/core/dom/KeyboardEvent.h#newcode128 > > Source/core/dom/KeyboardEvent.h:128: ...
7 years, 6 months ago (2013-06-17 19:54:56 UTC) #8
tkent
Please use "reply" feature on the diff view if possible. On 2013/06/17 12:04:05, Krzysztof Olczyk ...
7 years, 6 months ago (2013-06-17 22:58:24 UTC) #9
Krzysztof Olczyk
Thank you for your comments/suggestions. Please take a look at new diff with the suggestions ...
7 years, 6 months ago (2013-06-18 11:55:01 UTC) #10
tkent
lgtm
7 years, 6 months ago (2013-06-19 06:30:40 UTC) #11
tkent
Please rebase and re-upload new patch. Patch Set 3 will conflict with ToT.
7 years, 6 months ago (2013-06-19 06:32:31 UTC) #12
Krzysztof Olczyk
Patch rebased and submitted as Patch set 4.
7 years, 6 months ago (2013-06-19 08:06:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/22001
7 years, 6 months ago (2013-06-19 08:10:28 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=10116
7 years, 6 months ago (2013-06-19 11:07:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/22001
7 years, 6 months ago (2013-06-19 12:28:12 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=10128
7 years, 6 months ago (2013-06-19 13:33:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/22001
7 years, 6 months ago (2013-06-20 01:44:23 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=10199
7 years, 6 months ago (2013-06-20 03:52:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/22001
7 years, 6 months ago (2013-06-20 03:53:35 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=10205
7 years, 6 months ago (2013-06-20 05:04:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/22001
7 years, 6 months ago (2013-06-20 06:36:38 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=10266
7 years, 6 months ago (2013-06-20 11:45:18 UTC) #23
tkent
https://chromiumcodereview.appspot.com/16959002/diff/22001/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://chromiumcodereview.appspot.com/16959002/diff/22001/Source/core/html/HTMLElement.cpp#newcode611 Source/core/html/HTMLElement.cpp:611: if (!document()->settings()->spatialNavigationEnabled()) document()->settings() can be NULL.
7 years, 6 months ago (2013-06-21 02:36:52 UTC) #24
Krzysztof Olczyk
Thanks for pointing the potential null out. Fixed now. https://chromiumcodereview.appspot.com/16959002/diff/22001/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://chromiumcodereview.appspot.com/16959002/diff/22001/Source/core/html/HTMLElement.cpp#newcode611 Source/core/html/HTMLElement.cpp:611: ...
7 years, 6 months ago (2013-06-21 07:22:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/16959002/86001
7 years, 6 months ago (2013-06-23 04:00:00 UTC) #26
commit-bot: I haz the power
7 years, 6 months ago (2013-06-23 05:27:36 UTC) #27
Message was sent while issue was closed.
Change committed as 152930

Powered by Google App Engine
This is Rietveld 408576698