Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aff169e9 authored by Michael Wright's avatar Michael Wright Committed by Linzhao Ye
Browse files

Convert TouchInputMapper enums to enum classes.

Also, drop virtual for override methods. The override keyword requires
a method to both be virtual and overriding a parent's virtual method, so
having both is redundant.

Bug: 160010896
Test: atest InputReader_test.cpp
Change-Id: Ia36e0fa95068531e5e23c3932b7c190dfa40ecd9
Merged-In: Ia36e0fa95068531e5e23c3932b7c190dfa40ecd9
parent dd99c310
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -92,15 +92,15 @@ private:
class MultiTouchInputMapper : public TouchInputMapper {
public:
    explicit MultiTouchInputMapper(InputDeviceContext& deviceContext);
    virtual ~MultiTouchInputMapper();
    ~MultiTouchInputMapper() override;

    virtual void reset(nsecs_t when) override;
    virtual void process(const RawEvent* rawEvent) override;
    void reset(nsecs_t when) override;
    void process(const RawEvent* rawEvent) override;

protected:
    virtual void syncTouch(nsecs_t when, RawState* outState);
    virtual void configureRawPointerAxes();
    virtual bool hasStylus() const;
    void syncTouch(nsecs_t when, RawState* outState) override;
    void configureRawPointerAxes() override;
    bool hasStylus() const override;

private:
    MultiTouchMotionAccumulator mMultiTouchMotionAccumulator;
+6 −6
Original line number Diff line number Diff line
@@ -25,15 +25,15 @@ namespace android {
class SingleTouchInputMapper : public TouchInputMapper {
public:
    explicit SingleTouchInputMapper(InputDeviceContext& deviceContext);
    virtual ~SingleTouchInputMapper();
    ~SingleTouchInputMapper() override;

    virtual void reset(nsecs_t when) override;
    virtual void process(const RawEvent* rawEvent) override;
    void reset(nsecs_t when) override;
    void process(const RawEvent* rawEvent) override;

protected:
    virtual void syncTouch(nsecs_t when, RawState* outState);
    virtual void configureRawPointerAxes();
    virtual bool hasStylus() const;
    void syncTouch(nsecs_t when, RawState* outState) override;
    void configureRawPointerAxes() override;
    bool hasStylus() const override;

private:
    SingleTouchMotionAccumulator mSingleTouchMotionAccumulator;