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

Unified Diff: ui/events/event.h

Issue 1294523004: ozone: Handle pressure and tilt for stylus devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-pe-details
Patch Set: Drop now unused mutators. Created 5 years, 4 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
« no previous file with comments | « no previous file | ui/events/event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 317ee92b133f62ff46afb6498f04d2fed46bb3b8..0667824d34bf3b97c01aa6e0d50f3d9ef01006b6 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -462,22 +462,11 @@ class EVENTS_EXPORT MouseEvent : public LocatedEvent {
// Updates the button that changed.
void set_changed_button_flags(int flags) { changed_button_flags_ = flags; }
- // Replace the pointer type (e.g. to EventPointerType::POINTER_TYPE_PEN) for
- // stylus devices.
- void set_pointer_type(EventPointerType type) {
- pointer_details_.pointer_type_ = type;
- }
-
- // Update properties for stylus devices exposed through the Pointer Events
- // spec.
- void set_force(const float f) { pointer_details_.force_ = f; }
- void set_tilt_x(const float t) { pointer_details_.tilt_x_ = t; }
- void set_tilt_y(const float t) { pointer_details_.tilt_y_ = t; }
- void set_radius_x(const float r) { pointer_details_.radius_x_ = r; }
- void set_radius_y(const float r) { pointer_details_.radius_y_ = r; }
-
// Event details common to MouseEvent and TouchEvent.
const PointerDetails& pointer_details() { return pointer_details_; }
+ void set_pointer_details(const PointerDetails& details) {
+ pointer_details_ = details;
+ }
private:
FRIEND_TEST_ALL_PREFIXES(EventTest, DoubleClickRequiresRelease);
« no previous file with comments | « no previous file | ui/events/event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698