raw_x(0),
raw_y(0),
pressure(0),
- touch_major(0) {
+ touch_major(0),
+ touch_minor(0),
+ orientation(0) {
}
PointerProperties::PointerProperties(float x, float y)
raw_x(x),
raw_y(y),
pressure(0),
- touch_major(0) {
+ touch_major(0),
+ touch_minor(0),
+ orientation(0) {
}
MotionEventGeneric::MotionEventGeneric()
- : action_(ACTION_CANCEL), id_(0), action_index_(0), button_state_(0) {
+ : action_(ACTION_CANCEL),
+ id_(0),
+ action_index_(0),
+ button_state_(0),
+ flags_(0) {
}
MotionEventGeneric::MotionEventGeneric(Action action,
event_time_(event_time),
id_(0),
action_index_(0),
- button_state_(0) {
+ button_state_(0),
+ flags_(0) {
PushPointer(pointer);
}
id_(other.id_),
action_index_(other.action_index_),
button_state_(other.button_state_),
+ flags_(other.flags_),
pointers_(other.pointers_) {
}
return pointers_[pointer_index].touch_major;
}
+float MotionEventGeneric::GetTouchMinor(size_t pointer_index) const {
+ DCHECK_LT(pointer_index, pointers_->size());
+ return pointers_[pointer_index].touch_minor;
+}
+
+float MotionEventGeneric::GetOrientation(size_t pointer_index) const {
+ DCHECK_LT(pointer_index, pointers_->size());
+ return pointers_[pointer_index].orientation;
+}
+
float MotionEventGeneric::GetPressure(size_t pointer_index) const {
DCHECK_LT(pointer_index, pointers_->size());
return pointers_[pointer_index].pressure;
return button_state_;
}
+int MotionEventGeneric::GetFlags() const {
+ return flags_;
+}
+
base::TimeTicks MotionEventGeneric::GetEventTime() const {
return event_time_;
}