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

Unified Diff: ui/events/ozone/evdev/touch_event_converter_ozone.h

Issue 28513004: Move evdev events support into EventFactoryDelegateEvdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add evdev to filename_rules.gypi Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/touch_event_converter_ozone.h
diff --git a/ui/events/ozone/evdev/touch_event_converter_ozone.h b/ui/events/ozone/evdev/touch_event_converter_ozone.h
deleted file mode 100644
index 8ba8ead1346b403859614ca667bc8a57aaf7096c..0000000000000000000000000000000000000000
--- a/ui/events/ozone/evdev/touch_event_converter_ozone.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_OZONE_H_
-#define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_OZONE_H_
-
-#include <bitset>
-
-#include "base/compiler_specific.h"
-#include "ui/events/event_constants.h"
-#include "ui/events/events_export.h"
-#include "ui/events/ozone/event_converter_ozone.h"
-
-namespace ui {
-
-class TouchEvent;
-
-class EVENTS_EXPORT TouchEventConverterOzone : public EventConverterOzone {
- public:
- enum {
- MAX_FINGERS = 11
- };
- TouchEventConverterOzone(int fd, int id);
- virtual ~TouchEventConverterOzone();
-
- private:
- friend class MockTouchEventConverterOzone;
-
- // Unsafe part of initialization.
- void Init();
-
- // Overidden from base::MessagePumpLibevent::Watcher.
- virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
- virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
-
- // Pressure values.
- int pressure_min_;
- int pressure_max_; // Used to normalize pressure values.
-
- // Touch scaling.
- float x_scale_;
- float y_scale_;
-
- // Maximum coordinate-values allowed for the events.
- int x_max_;
- int y_max_;
-
- // Touch point currently being updated from the /dev/input/event* stream.
- int current_slot_;
-
- // File descriptor for the /dev/input/event* instance.
- int fd_;
-
- // Number corresponding to * in the source evdev device: /dev/input/event*
- int id_;
-
- // Bit field tracking which in-progress touch points have been modified
- // without a syn event.
- std::bitset<MAX_FINGERS> altered_slots_;
-
- struct InProgressEvents {
- int x_;
- int y_;
- int id_; // Device reported "unique" touch point id; -1 means not active
- int finger_; // "Finger" id starting from 0; -1 means not active
-
- EventType type_;
- int major_;
- float pressure_;
- };
-
- // In-progress touch points.
- InProgressEvents events_[MAX_FINGERS];
-
- DISALLOW_COPY_AND_ASSIGN(TouchEventConverterOzone);
-};
-
-} // namespace ui
-
-#endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_OZONE_H_
-
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter.cc ('k') | ui/events/ozone/evdev/touch_event_converter_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698