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

Issue 2678683002: Delay instantiating InputDeviceCapabilities until accessed. (Closed)

Created:
3 years, 10 months ago by sof
Modified:
3 years, 9 months ago
Reviewers:
lanwei, Rick Byers
CC:
chromium-reviews, krit, blink-reviews-html_chromium.org, eae+blinkwatch, fs, blink-reviews-dom_chromium.org, dglazkov+blink, dtapuska+blinkwatch_chromium.org, f(malita), Navid Zolghadr, blink-reviews, gyuyoung2, Stephen Chennney, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delay instantiating InputDeviceCapabilities until accessed. UIEvent.sourceCapabilities is an optional InputDeviceCapabilities object ( https://wicg.github.io/InputDeviceCapabilities/ ) which represents the capabilities of the device that originated the event, if known. Switch the internal representation of the event's device capabilities to be a simple value, and only instantiate it as a full-fledged InputDeviceCapabilities instance upon eventual access. R= BUG=688569

Patch Set 1 #

Patch Set 2 : make InputDeviceCapabilities(bool) explicit #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -239 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 5 chunks +16 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 4 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/events/CompositionEvent.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/FocusEvent.h View 2 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/events/FocusEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/GestureEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/KeyboardEvent.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.h View 1 chunk +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.cpp View 1 5 chunks +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/events/TextEvent.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/TouchEvent.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/UIEvent.h View 3 chunks +16 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/events/UIEvent.cpp View 1 2 5 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/events/UIEventWithKeyState.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.h View 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.h View 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLabelElement.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.h View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.cpp View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/InputTypeView.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/RadioInputType.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/input/InputDeviceCapabilities.h View 1 2 3 chunks +54 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/input/InputDeviceCapabilities.cpp View 1 chunk +32 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/input/KeyboardEventManager.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.h View 1 2 4 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 7 chunks +25 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAElement.h View 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFormControlElement.cpp View 1 chunk +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
sof
please take a look. I think this is a preferable internal representation for these capabilities, ...
3 years, 10 months ago (2017-02-10 10:47:11 UTC) #14
Rick Byers
Thanks for working on this! Can you explain a little more why it's so valuable ...
3 years, 10 months ago (2017-02-11 15:31:01 UTC) #17
sof
On 2017/02/11 15:31:01, Rick Byers wrote: > Thanks for working on this! > > Can ...
3 years, 10 months ago (2017-02-13 12:57:32 UTC) #18
Rick Byers
On 2017/02/13 12:57:32, sof wrote: > On 2017/02/11 15:31:01, Rick Byers wrote: > > Thanks ...
3 years, 10 months ago (2017-02-13 20:25:51 UTC) #19
sof
On 2017/02/13 20:25:51, Rick Byers wrote: > On 2017/02/13 12:57:32, sof wrote: > > On ...
3 years, 10 months ago (2017-02-17 19:09:27 UTC) #20
Rick Byers
On 2017/02/17 19:09:27, sof wrote: > On 2017/02/13 20:25:51, Rick Byers wrote: > > On ...
3 years, 10 months ago (2017-02-25 15:18:51 UTC) #21
sof
3 years, 9 months ago (2017-02-27 17:29:47 UTC) #22
Thanks for the helpful feedback and spec context, rbyers@. I'll park this CL for
now, but keep an eye on spec developments.

Powered by Google App Engine
This is Rietveld 408576698