4 years, 11 months ago
(2015-05-26 23:54:04 UTC)
#2
tdresser
We should probably put this behind a RuntimeEnabledFeature: https://www.chromium.org/blink/runtime-enabled-features https://codereview.chromium.org/1157173003/diff/1/Source/core/events/InputDevice.h File Source/core/events/InputDevice.h (right): https://codereview.chromium.org/1157173003/diff/1/Source/core/events/InputDevice.h#newcode43 Source/core/events/InputDevice.h:43: ...
4 years, 11 months ago
(2015-05-27 12:38:47 UTC)
#3
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/InputDevice.h File Source/core/events/InputDevice.h (right): https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/InputDevice.h#newcode11 Source/core/events/InputDevice.h:11: #include "platform/heap/Handle.h" Is this required? https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/InputDevice.idl File Source/core/events/InputDevice.idl (right): ...
4 years, 11 months ago
(2015-05-28 15:03:21 UTC)
#6
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
File Source/core/events/InputDevice.h (right):
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
Source/core/events/InputDevice.h:11: #include "platform/heap/Handle.h"
Is this required?
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
File Source/core/events/InputDevice.idl (right):
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
Source/core/events/InputDevice.idl:1: // Copyright 2015 The Chromium Authors.
All rights reserved.
On 2015/05/28 00:21:57, Rick Byers wrote:
> as discussed offline, maybe this is a good time to create Source/core/input?
> EventHandler.* could go there (but that can be a separate CL). Technically
> InputDevice isn't strictly coupled to events (we hope to some day have some
> InputDevice.getAllDevices API).
+1
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
Source/core/events/InputDevice.idl:10: // To ease implementation, developers
cannot rely on comparing two InputDevice
I'd move the "To ease implementation..." section above the description of how we
only have two InputDevices, and then get rid of the "Eg. two mice with the
same..."
Something like:
Represents an input device (or group of related devices).
To ease implementation, developers cannot rely on comparing
two InputDevice instances for equality. We only have two InputDevice instances
right now:
one represents all the devices which send touch events, the other one covers
all other devices which do not send touch events, because currently all we care
about is if the input device fires touch events or not.
lanwei
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/InputDevice.idl File Source/core/events/InputDevice.idl (right): https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/InputDevice.idl#newcode1 Source/core/events/InputDevice.idl:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 11 months ago
(2015-05-28 18:14:43 UTC)
#7
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
File Source/core/events/InputDevice.idl (right):
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
Source/core/events/InputDevice.idl:1: // Copyright 2015 The Chromium Authors.
All rights reserved.
On 2015/05/28 15:03:21, tdresser wrote:
> On 2015/05/28 00:21:57, Rick Byers wrote:
> > as discussed offline, maybe this is a good time to create Source/core/input?
> > EventHandler.* could go there (but that can be a separate CL). Technically
> > InputDevice isn't strictly coupled to events (we hope to some day have some
> > InputDevice.getAllDevices API).
>
> +1
I will create a new fold in another CL, and move InputDevice and EventHandler to
it.
https://codereview.chromium.org/1157173003/diff/20001/Source/core/events/Inpu...
Source/core/events/InputDevice.idl:10: // To ease implementation, developers
cannot rely on comparing two InputDevice
On 2015/05/28 15:03:21, tdresser wrote:
> I'd move the "To ease implementation..." section above the description of how
we
> only have two InputDevices, and then get rid of the "Eg. two mice with the
> same..."
>
> Something like:
>
> Represents an input device (or group of related devices).
> To ease implementation, developers cannot rely on comparing
> two InputDevice instances for equality. We only have two InputDevice instances
> right now:
> one represents all the devices which send touch events, the other one covers
> all other devices which do not send touch events, because currently all we
care
> about is if the input device fires touch events or not.
Done.
tdresser
LGTM. I think moving this to core/input before landing it might be easier (and then ...
4 years, 11 months ago
(2015-05-28 18:18:18 UTC)
#8
tkent@chromium.org: Please review changes in Source/platform/RuntimeEnabledFeatures.in, I add a new class InputDevice, thanks. https://codereview.chromium.org/1157173003/diff/130001/Source/core/input/InputDevice.cpp File ...
4 years, 11 months ago
(2015-06-03 21:20:55 UTC)
#19
lgtm https://codereview.chromium.org/1157173003/diff/230001/Source/core/input/InputDevice.cpp File Source/core/input/InputDevice.cpp (right): https://codereview.chromium.org/1157173003/diff/230001/Source/core/input/InputDevice.cpp#newcode4 Source/core/input/InputDevice.cpp:4: #include "config.h" Add a blank line before this ...
4 years, 11 months ago
(2015-06-04 22:55:42 UTC)
#23
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/InputDevice.h File Source/core/input/InputDevice.h (right): https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/InputDevice.h#newcode16 Source/core/input/InputDevice.h:16: class CORE_EXPORT InputDevice : public RefCountedWillBeGarbageCollectedFinalized<InputDevice>, public ScriptWrappable { ...
4 years, 10 months ago
(2015-06-10 20:37:05 UTC)
#30
Message was sent while issue was closed.
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
File Source/core/input/InputDevice.h (right):
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
Source/core/input/InputDevice.h:16: class CORE_EXPORT InputDevice : public
RefCountedWillBeGarbageCollectedFinalized<InputDevice>, public ScriptWrappable {
On 2015/06/04 00:00:47, tkent wrote:
> Can we make this GarbageCollectedFinalized<> instead of
> RefCountedWillBeGarbageCollectedFinalized<>?
I've been wondering about this. How do we decide when a new class should be
strictly an Oilpan type vs. a WillBe* type? Perhaps the Oilpan docs
(https://www.chromium.org/blink/blink-gc) should be updated to talk about this -
it's very unclear for random contributors not too familiar with Oilpan to know
how new code should be written...
tkent
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/InputDevice.h File Source/core/input/InputDevice.h (right): https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/InputDevice.h#newcode16 Source/core/input/InputDevice.h:16: class CORE_EXPORT InputDevice : public RefCountedWillBeGarbageCollectedFinalized<InputDevice>, public ScriptWrappable { ...
4 years, 10 months ago
(2015-06-10 22:50:03 UTC)
#31
Message was sent while issue was closed.
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
File Source/core/input/InputDevice.h (right):
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
Source/core/input/InputDevice.h:16: class CORE_EXPORT InputDevice : public
RefCountedWillBeGarbageCollectedFinalized<InputDevice>, public ScriptWrappable {
On 2015/06/10 20:37:05, Rick Byers wrote:
> On 2015/06/04 00:00:47, tkent wrote:
> > Can we make this GarbageCollectedFinalized<> instead of
> > RefCountedWillBeGarbageCollectedFinalized<>?
>
> I've been wondering about this. How do we decide when a new class should be
> strictly an Oilpan type vs. a WillBe* type? Perhaps the Oilpan docs
> (https://www.chromium.org/blink/blink-gc) should be updated to talk about this
-
> it's very unclear for random contributors not too familiar with Oilpan to know
> how new code should be written...
There are no clear rules. However, new web-exposed classes should be
GarbageCollected or GarbageCollectedFinalized without WillBe. All of
web-exposed classes will be on Oilpan heap in the near future, and oilpan-team
is trying to reduce the number classes with WillBe now.
4 years, 10 months ago
(2015-06-10 23:06:53 UTC)
#32
Message was sent while issue was closed.
On 2015/06/10 22:50:03, tkent wrote:
>
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
> File Source/core/input/InputDevice.h (right):
>
>
https://codereview.chromium.org/1157173003/diff/210001/Source/core/input/Inpu...
> Source/core/input/InputDevice.h:16: class CORE_EXPORT InputDevice : public
> RefCountedWillBeGarbageCollectedFinalized<InputDevice>, public ScriptWrappable
{
> On 2015/06/10 20:37:05, Rick Byers wrote:
> > On 2015/06/04 00:00:47, tkent wrote:
> > > Can we make this GarbageCollectedFinalized<> instead of
> > > RefCountedWillBeGarbageCollectedFinalized<>?
> >
> > I've been wondering about this. How do we decide when a new class should be
> > strictly an Oilpan type vs. a WillBe* type? Perhaps the Oilpan docs
> > (https://www.chromium.org/blink/blink-gc) should be updated to talk about
this
> -
> > it's very unclear for random contributors not too familiar with Oilpan to
know
> > how new code should be written...
>
> There are no clear rules. However, new web-exposed classes should be
> GarbageCollected or GarbageCollectedFinalized without WillBe. All of
> web-exposed classes will be on Oilpan heap in the near future, and oilpan-team
> is trying to reduce the number classes with WillBe now.
Makes sense, thanks!
Issue 1157173003: Impelement InputDevice.firesTouchEvents
(Closed)
Created 4 years, 11 months ago by lanwei
Modified 4 years, 10 months ago
Reviewers: Rick Byers, tdresser, tkent
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 32